summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--bazarr/sonarr/sync/series.py4
-rw-r--r--bazarr/sonarr/sync/utils.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/bazarr/sonarr/sync/series.py b/bazarr/sonarr/sync/series.py
index d6bf94a30..2e01c5a61 100644
--- a/bazarr/sonarr/sync/series.py
+++ b/bazarr/sonarr/sync/series.py
@@ -181,11 +181,11 @@ def update_one_series(series_id, action):
return
else:
if action == 'updated' and existing_series:
- series = seriesParser(series_data, action='update', tags_dict=tagsDict,
+ series = seriesParser(series_data[0], action='update', tags_dict=tagsDict,
serie_default_profile=serie_default_profile,
audio_profiles=audio_profiles)
elif action == 'updated' and not existing_series:
- series = seriesParser(series_data, action='insert', tags_dict=tagsDict,
+ series = seriesParser(series_data[0], action='insert', tags_dict=tagsDict,
serie_default_profile=serie_default_profile,
audio_profiles=audio_profiles)
except Exception:
diff --git a/bazarr/sonarr/sync/utils.py b/bazarr/sonarr/sync/utils.py
index e03f40ff3..13f00b61a 100644
--- a/bazarr/sonarr/sync/utils.py
+++ b/bazarr/sonarr/sync/utils.py
@@ -93,7 +93,7 @@ def get_series_from_sonarr_api(url, apikey_sonarr, sonarr_series_id=None):
else:
result = r.json()
if isinstance(result, dict):
- return list(result)
+ return [result]
else:
return r.json()