Skip to content

Commit

Permalink
Fixed single blacklist item deletion issue that would remove all the …
Browse files Browse the repository at this point in the history
…blacklisted subtitles from the same provider at once.
  • Loading branch information
lawadr authored Jan 24, 2024
1 parent 345408d commit c45a2ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bazarr/radarr/blacklist.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')


Expand Down
2 changes: 1 addition & 1 deletion bazarr/sonarr/blacklist.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')


Expand Down

0 comments on commit c45a2ac

Please sign in to comment.