Skip to content

Commit

Permalink
Fixed wanted list not getting updated when changing exclusion setting…
Browse files Browse the repository at this point in the history
…s for Sonarr and Radarr.
  • Loading branch information
morpheus65535 committed Aug 30, 2021
1 parent e8fa5d9 commit 0e9cd7d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions bazarr/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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')
Expand Down Expand Up @@ -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():
Expand Down

0 comments on commit 0e9cd7d

Please sign in to comment.