From fa8ddeb2aa41942e69f31c0b62869ef9a314f860 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Fri, 16 Sep 2022 14:55:14 -0400 Subject: [PATCH] Fix to deal with empty series/movies list during sync. #1941 --- bazarr/radarr/sync/movies.py | 2 +- 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