From 4bf249a9fd091ee18394516f585c3bc57743eaec Mon Sep 17 00:00:00 2001 From: strNophix Date: Fri, 22 Jul 2022 14:00:38 +0200 Subject: [PATCH] Fixed MovieExistsValidator --- al_arr_sync/radarr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/al_arr_sync/radarr.py b/al_arr_sync/radarr.py index b310090..fb9347e 100644 --- a/al_arr_sync/radarr.py +++ b/al_arr_sync/radarr.py @@ -60,7 +60,7 @@ class RadarrClient: if resp.status_code != 201: resp_data = resp.json() error_codes = map(lambda x: x["errorCode"], resp_data) - if "SeriesExistsValidator" in error_codes: + if "MovieExistsValidator" in error_codes: raise Exception(f"Movie already exists: {show['title']}") raise Exception(f"Failed to add movie: {show['title']}:\n{resp_data}")