Fix to deal with empty series/movies list during sync. #1941

pull/1950/head
morpheus65535 2 years ago
parent 87b3e55aa1
commit fa8ddeb2aa

@ -45,7 +45,7 @@ def update_movies(send_event=True):
# Get movies data from radarr
movies = get_movies_from_radarr_api(url=url_radarr(), apikey_radarr=apikey_radarr)
if not movies:
if not isinstance(movies, list):
return
else:
# Get current movies in DB

@ -37,7 +37,7 @@ def update_series(send_event=True):
# Get shows data from Sonarr
series = get_series_from_sonarr_api(url=url_sonarr(), apikey_sonarr=apikey_sonarr)
if not series:
if not isinstance(series, list):
return
else:
# Get current shows in DB

Loading…
Cancel
Save