mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-23 08:13:14 +00:00
Fix to deal with empty series/movies list during sync. #1941
This commit is contained in:
parent
87b3e55aa1
commit
fa8ddeb2aa
2 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue