Fixed MovieExistsValidator

This commit is contained in:
strNophix 2022-07-22 14:00:38 +02:00
parent aae074a573
commit 4bf249a9fd

@ -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}")