no log: send events to update wanted and badges in ui when something's changed while saving languages profiles.

pull/1991/head
morpheus65535 2 years ago
parent e82dcb48bc
commit eb770c9faa

@ -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')

@ -246,6 +246,8 @@ def list_missing_subtitles_movies(no=None, send_event=True):
if send_event:
event_stream(type='movie', payload=movie_subtitles['radarrId'])
event_stream(type='movie-wanted', action='update', payload=movie_subtitles['radarrId'])
if send_event:
event_stream(type='badges')

@ -256,6 +256,8 @@ 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='episode-wanted', action='update', payload=episode_subtitles['sonarrEpisodeId'])
if send_event:
event_stream(type='badges')

Loading…
Cancel
Save