fix NoneError

This commit is contained in:
meisnate12 2021-12-28 22:44:55 -05:00
parent 9214b3bd02
commit 672cdbd2ce
2 changed files with 2 additions and 2 deletions

View file

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

View file

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