summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2021-05-26 10:36:33 -0400
committermorpheus65535 <[email protected]>2021-05-26 10:36:33 -0400
commitc2eec34affccf6481ca2a12841e164bd289fd043 (patch)
tree2beb1e02f39ac3c517b04ae95a734bef5125ca06
parent47bb77ac6f229afb366e40af4e8233933d23ebd2 (diff)
parenta9abe300809852587164663753d84c52094c4aab (diff)
downloadbazarr-c2eec34affccf6481ca2a12841e164bd289fd043.tar.gz
bazarr-c2eec34affccf6481ca2a12841e164bd289fd043.zip
Merge remote-tracking branch 'origin/development' into development
-rw-r--r--bazarr/utils.py8
-rw-r--r--frontend/src/@redux/hooks/index.ts4
2 files changed, 6 insertions, 6 deletions
diff --git a/bazarr/utils.py b/bazarr/utils.py
index 3f9a08878..7c58de412 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')
+ event_stream(type='episode-blacklist', action='delete')
def blacklist_delete_all():
database.execute("DELETE FROM table_blacklist")
- event_stream(type='episode-blacklist')
+ event_stream(type='episode-blacklist', action='delete')
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')
+ event_stream(type='movie-blacklist', action='delete')
def blacklist_delete_all_movie():
database.execute("DELETE FROM table_blacklist_movie")
- event_stream(type='movie-blacklist')
+ event_stream(type='movie-blacklist', action='delete')
@region.cache_on_arguments()
diff --git a/frontend/src/@redux/hooks/index.ts b/frontend/src/@redux/hooks/index.ts
index bd89c49b6..364871a4f 100644
--- a/frontend/src/@redux/hooks/index.ts
+++ b/frontend/src/@redux/hooks/index.ts
@@ -362,7 +362,7 @@ export function useBlacklistMovies() {
const update = useReduxAction(movieUpdateBlacklist);
const items = useReduxStore((d) => d.movie.blacklist);
const reducer = useMemo<SocketIO.Reducer>(
- () => ({ key: "movie-blacklist", update }),
+ () => ({ key: "movie-blacklist", any: update }),
[update]
);
useSocketIOReducer(reducer);
@@ -377,7 +377,7 @@ export function useBlacklistSeries() {
const update = useReduxAction(seriesUpdateBlacklist);
const items = useReduxStore((d) => d.series.blacklist);
const reducer = useMemo<SocketIO.Reducer>(
- () => ({ key: "episode-blacklist", update }),
+ () => ({ key: "episode-blacklist", any: update }),
[update]
);
useSocketIOReducer(reducer);