From 6d9dea724f78eb34cc0c359227afa119ce163c00 Mon Sep 17 00:00:00 2001 From: morpheus65535 <5130500+morpheus65535@users.noreply.github.com> Date: Tue, 29 May 2018 20:43:46 -0400 Subject: [PATCH] Idem --- bazarr.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bazarr.py b/bazarr.py index 2915e147e..ae856bd9b 100644 --- a/bazarr.py +++ b/bazarr.py @@ -701,7 +701,6 @@ def save_settings(): settings_sonarr_apikey = request.forms.get('settings_sonarr_apikey') settings_sonarr_sync = request.forms.get('settings_sonarr_sync') c.execute("UPDATE table_settings_sonarr SET ip = ?, port = ?, base_url = ?, ssl = ?, apikey = ?, full_update = ?", (settings_sonarr_ip, settings_sonarr_port, settings_sonarr_baseurl, settings_sonarr_ssl, settings_sonarr_apikey, settings_sonarr_sync)) - sonarr_full_update() settings_radarr_ip = request.forms.get('settings_radarr_ip') settings_radarr_port = request.forms.get('settings_radarr_port') @@ -714,7 +713,6 @@ def save_settings(): settings_radarr_apikey = request.forms.get('settings_radarr_apikey') settings_radarr_sync = request.forms.get('settings_radarr_sync') c.execute("UPDATE table_settings_radarr SET ip = ?, port = ?, base_url = ?, ssl = ?, apikey = ?, full_update = ?", (settings_radarr_ip, settings_radarr_port, settings_radarr_baseurl, settings_radarr_ssl, settings_radarr_apikey, settings_radarr_sync)) - radarr_full_update() settings_subliminal_providers = request.forms.getall('settings_subliminal_providers') c.execute("UPDATE table_settings_providers SET enabled = 0") @@ -884,6 +882,9 @@ def save_settings(): conn.commit() c.close() + sonarr_full_update() + radarr_full_update() + logging.info('Settings saved succesfully.') # reschedule full update task according to settings