From a9da6e334343e98a8129781d90ecc623e9038310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Thu, 23 Jul 2020 14:01:35 -0400 Subject: [PATCH] Fix for #1031. Improvement to events sent to browser when using batch editor. --- bazarr/api.py | 8 -------- bazarr/list_subtitles.py | 4 ++-- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/bazarr/api.py b/bazarr/api.py index 97add7a3f..7d7fcf5f6 100644 --- a/bazarr/api.py +++ b/bazarr/api.py @@ -364,8 +364,6 @@ class Series(Resource): list_missing_subtitles(no=seriesId) - event_stream(type='series', action='update', series=seriesId) - return '', 204 @@ -393,8 +391,6 @@ class SeriesEditSave(Resource): else: list_missing_subtitles(no=seriesid) - event_stream(type='series', action='update', series=seriesid) - return '', 204 @@ -875,8 +871,6 @@ class Movies(Resource): list_missing_subtitles_movies(no=radarrId) - event_stream(type='movie', action='update', movie=radarrId) - return '', 204 @@ -904,8 +898,6 @@ class MoviesEditSave(Resource): else: list_missing_subtitles_movies(no=radarrid) - event_stream(type='movie', action='update', movie=radarrid) - return '', 204 diff --git a/bazarr/list_subtitles.py b/bazarr/list_subtitles.py index 1cf1f0494..015713e05 100644 --- a/bazarr/list_subtitles.py +++ b/bazarr/list_subtitles.py @@ -233,7 +233,7 @@ def list_missing_subtitles(no=None, epno=None): event_stream(type='episode', action='update', series=missing_subtitles_item[2], episode=missing_subtitles_item[1]) - event_stream(type='badges') + event_stream(type='badges') def list_missing_subtitles_movies(no=None): @@ -293,7 +293,7 @@ def list_missing_subtitles_movies(no=None): (missing_subtitles_item[0], missing_subtitles_item[1])) event_stream(type='movie', action='update', movie=missing_subtitles_item[1]) - event_stream(type='badges') + event_stream(type='badges') def series_full_scan_subtitles():