mirror of https://github.com/morpheus65535/bazarr
Fix single blacklist item deletion
A bug in the database deletion code meant all subtitles sharing the same provider were being deleted from the blacklist table instead of one single item. This was happening because the `subs_id` was being ignored.
This commit is contained in:
parent
828ac34074
commit
af2d1ce467
|
@ -29,7 +29,7 @@ def blacklist_log_movie(radarr_id, provider, subs_id, language):
|
|||
def blacklist_delete_movie(provider, subs_id):
|
||||
database.execute(
|
||||
delete(TableBlacklistMovie)
|
||||
.where((TableBlacklistMovie.provider == provider) and (TableBlacklistMovie.subs_id == subs_id)))
|
||||
.where((TableBlacklistMovie.provider == provider) & (TableBlacklistMovie.subs_id == subs_id)))
|
||||
event_stream(type='movie-blacklist', action='delete')
|
||||
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ def blacklist_log(sonarr_series_id, sonarr_episode_id, provider, subs_id, langua
|
|||
def blacklist_delete(provider, subs_id):
|
||||
database.execute(
|
||||
delete(TableBlacklist)
|
||||
.where((TableBlacklist.provider == provider) and (TableBlacklist.subs_id == subs_id)))
|
||||
.where((TableBlacklist.provider == provider) & (TableBlacklist.subs_id == subs_id)))
|
||||
event_stream(type='episode-blacklist', action='delete')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue