Fixed wanted list not getting updated when changing exclusion settings for Sonarr and Radarr.

pull/1523/head
morpheus65535 3 years ago
parent e8fa5d982f
commit 0e9cd7d05f

@ -305,6 +305,8 @@ def save_settings(settings_items):
update_path_map = False update_path_map = False
configure_proxy = False configure_proxy = False
exclusion_updated = False exclusion_updated = False
sonarr_exclusion_updated = False
radarr_exclusion_updated = False
# Subzero Mods # Subzero Mods
update_subzero = False update_subzero = False
@ -376,6 +378,13 @@ def save_settings(settings_items):
'settings-radarr-only_monitored']: 'settings-radarr-only_monitored']:
exclusion_updated = True exclusion_updated = True
if key in ['settings-sonarr-excluded_tags', 'settings-sonarr-only_monitored',
'settings-sonarr-excluded_series_types']:
sonarr_exclusion_updated = True
if key in ['settings.radarr.excluded_tags', 'settings-radarr-only_monitored']:
radarr_exclusion_updated = True
if key == 'settings-addic7ed-username': if key == 'settings-addic7ed-username':
if key != settings.addic7ed.username: if key != settings.addic7ed.username:
region.delete('addic7ed_data') region.delete('addic7ed_data')
@ -467,6 +476,10 @@ def save_settings(settings_items):
if exclusion_updated: if exclusion_updated:
from event_handler import event_stream from event_handler import event_stream
event_stream(type='badges') event_stream(type='badges')
if sonarr_exclusion_updated:
event_stream(type='reset-episode-wanted')
if radarr_exclusion_updated:
event_stream(type='reset-movie-wanted')
def url_sonarr(): def url_sonarr():

Loading…
Cancel
Save