1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-27 10:07:22 +00:00

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

This commit is contained in:
morpheus65535 2021-08-29 22:01:00 -04:00
parent e8fa5d982f
commit 0e9cd7d05f

View file

@ -305,6 +305,8 @@ def save_settings(settings_items):
update_path_map = False
configure_proxy = False
exclusion_updated = False
sonarr_exclusion_updated = False
radarr_exclusion_updated = False
# Subzero Mods
update_subzero = False
@ -376,6 +378,13 @@ def save_settings(settings_items):
'settings-radarr-only_monitored']:
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:
region.delete('addic7ed_data')
@ -467,6 +476,10 @@ def save_settings(settings_items):
if exclusion_updated:
from event_handler import event_stream
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():