fix NoneError

pull/549/head
meisnate12 3 years ago
parent 9214b3bd02
commit 672cdbd2ce

@ -85,7 +85,7 @@ class Radarr:
if tmdb_id in arr_ids:
exists.append(arr_ids[tmdb_id])
continue
if path.lower() in arr_paths:
if path and path.lower() in arr_paths:
mismatched[path] = tmdb_id
continue
movie = self.api.get_movie(tmdb_id=tmdb_id)

@ -111,7 +111,7 @@ class Sonarr:
if tvdb_id in arr_ids:
exists.append(arr_ids[tvdb_id])
continue
if path.lower() in arr_paths:
if path and path.lower() in arr_paths:
mismatched[path] = tvdb_id
continue
show = self.api.get_series(tvdb_id=tvdb_id)

Loading…
Cancel
Save