mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-06 06:52:07 +08:00
Fixed blacklisted subtitles tables not being removed from table on delete.
This commit is contained in:
parent
61b3b869d0
commit
d8e8d7afc2
1 changed files with 4 additions and 4 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue