diff options
author | morpheus65535 <[email protected]> | 2022-09-16 14:55:14 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2022-09-16 14:55:14 -0400 |
commit | fa8ddeb2aa41942e69f31c0b62869ef9a314f860 (patch) | |
tree | e6d5f322c39de4fe8943a1295be2ee2b0533d37f | |
parent | 87b3e55aa15f0d10714da033e13f1fbd0850cb76 (diff) | |
download | bazarr-fa8ddeb2aa41942e69f31c0b62869ef9a314f860.tar.gz bazarr-fa8ddeb2aa41942e69f31c0b62869ef9a314f860.zip |
Fix to deal with empty series/movies list during sync. #1941
-rw-r--r-- | bazarr/radarr/sync/movies.py | 2 | ||||
-rw-r--r-- | bazarr/sonarr/sync/series.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bazarr/radarr/sync/movies.py b/bazarr/radarr/sync/movies.py index 64b1384ff..56c9ad9f6 100644 --- a/bazarr/radarr/sync/movies.py +++ b/bazarr/radarr/sync/movies.py @@ -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 diff --git a/bazarr/sonarr/sync/series.py b/bazarr/sonarr/sync/series.py index 2e01c5a61..30a18f2f2 100644 --- a/bazarr/sonarr/sync/series.py +++ b/bazarr/sonarr/sync/series.py @@ -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 |