diff options
author | morpheus65535 <[email protected]> | 2022-11-15 15:01:10 -0500 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2022-11-15 15:01:10 -0500 |
commit | eb770c9faa2c209435238e173c6ac282c4ef883c (patch) | |
tree | 976d3e340dfc8a7c7a0a0be4fe1189f62a2a0395 | |
parent | e82dcb48bcef51243130bf094649b2696985e34c (diff) | |
download | bazarr-eb770c9faa2c209435238e173c6ac282c4ef883c.tar.gz bazarr-eb770c9faa2c209435238e173c6ac282c4ef883c.zip |
no log: send events to update wanted and badges in ui when something's changed while saving languages profiles.
-rw-r--r-- | bazarr/api/system/settings.py | 4 | ||||
-rw-r--r-- | bazarr/subtitles/indexer/movies.py | 4 | ||||
-rw-r--r-- | bazarr/subtitles/indexer/series.py | 4 |
3 files changed, 8 insertions, 4 deletions
diff --git a/bazarr/api/system/settings.py b/bazarr/api/system/settings.py index 2fad51c72..48b69789c 100644 --- a/bazarr/api/system/settings.py +++ b/bazarr/api/system/settings.py @@ -95,9 +95,9 @@ class SystemSettings(Resource): event_stream("languages") if settings.general.getboolean('use_sonarr'): - scheduler.add_job(list_missing_subtitles, kwargs={'send_event': False}) + scheduler.add_job(list_missing_subtitles, kwargs={'send_event': True}) if settings.general.getboolean('use_radarr'): - scheduler.add_job(list_missing_subtitles_movies, kwargs={'send_event': False}) + scheduler.add_job(list_missing_subtitles_movies, kwargs={'send_event': True}) # Update Notification notifications = request.form.getlist('notifications-providers') diff --git a/bazarr/subtitles/indexer/movies.py b/bazarr/subtitles/indexer/movies.py index 31f6529ea..05e41506f 100644 --- a/bazarr/subtitles/indexer/movies.py +++ b/bazarr/subtitles/indexer/movies.py @@ -246,7 +246,9 @@ def list_missing_subtitles_movies(no=None, send_event=True): if send_event: event_stream(type='movie', payload=movie_subtitles['radarrId']) - event_stream(type='badges') + event_stream(type='movie-wanted', action='update', payload=movie_subtitles['radarrId']) + if send_event: + event_stream(type='badges') def movies_full_scan_subtitles(): diff --git a/bazarr/subtitles/indexer/series.py b/bazarr/subtitles/indexer/series.py index 002d039cf..c93ad8f4e 100644 --- a/bazarr/subtitles/indexer/series.py +++ b/bazarr/subtitles/indexer/series.py @@ -256,7 +256,9 @@ def list_missing_subtitles(no=None, epno=None, send_event=True): if send_event: event_stream(type='episode', payload=episode_subtitles['sonarrEpisodeId']) - event_stream(type='badges') + event_stream(type='episode-wanted', action='update', payload=episode_subtitles['sonarrEpisodeId']) + if send_event: + event_stream(type='badges') def series_full_scan_subtitles(): |