1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-23 16:23:41 +00:00

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

This commit is contained in:
morpheus65535 2022-09-16 14:55:14 -04:00
parent 87b3e55aa1
commit fa8ddeb2aa
2 changed files with 2 additions and 2 deletions

View file

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

View file

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