From d8e8d7afc20dcad25091cbe74a326af028201344 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Wed, 26 May 2021 07:24:03 -0400 Subject: [PATCH] Fixed blacklisted subtitles tables not being removed from table on delete. --- bazarr/utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bazarr/utils.py b/bazarr/utils.py index 7c58de412..3f9a08878 100644 --- a/bazarr/utils.py +++ b/bazarr/utils.py @@ -53,12 +53,12 @@ def blacklist_log(sonarr_series_id, sonarr_episode_id, provider, subs_id, langua def blacklist_delete(provider, subs_id): database.execute("DELETE FROM table_blacklist WHERE provider=? AND subs_id=?", (provider, subs_id)) - event_stream(type='episode-blacklist', action='delete') + event_stream(type='episode-blacklist') def blacklist_delete_all(): database.execute("DELETE FROM table_blacklist") - event_stream(type='episode-blacklist', action='delete') + event_stream(type='episode-blacklist') def history_log_movie(action, radarr_id, description, video_path=None, language=None, provider=None, score=None, @@ -77,12 +77,12 @@ def blacklist_log_movie(radarr_id, provider, subs_id, language): def blacklist_delete_movie(provider, subs_id): database.execute("DELETE FROM table_blacklist_movie WHERE provider=? AND subs_id=?", (provider, subs_id)) - event_stream(type='movie-blacklist', action='delete') + event_stream(type='movie-blacklist') def blacklist_delete_all_movie(): database.execute("DELETE FROM table_blacklist_movie") - event_stream(type='movie-blacklist', action='delete') + event_stream(type='movie-blacklist') @region.cache_on_arguments()