From 6925a97f2d45cc1edbd0db5e001ba26162ad04ae Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Thu, 26 Oct 2023 06:31:00 -0400 Subject: [PATCH] Fixed an error in previous commit that would prevent episodes syncing. --- bazarr/sonarr/sync/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bazarr/sonarr/sync/utils.py b/bazarr/sonarr/sync/utils.py index 2da337bd1..d90bcd1f7 100644 --- a/bazarr/sonarr/sync/utils.py +++ b/bazarr/sonarr/sync/utils.py @@ -124,9 +124,9 @@ def get_episodes_from_sonarr_api(apikey_sonarr, series_id=None, episode_id=None) def get_episodesFiles_from_sonarr_api(apikey_sonarr, series_id=None, episode_file_id=None): if series_id: - url_sonarr_api_episodeFiles = f"{url_api_sonarr}episodeFile?seriesId={series_id}&apikey={apikey_sonarr}" + url_sonarr_api_episodeFiles = f"{url_api_sonarr()}episodeFile?seriesId={series_id}&apikey={apikey_sonarr}" elif episode_file_id: - url_sonarr_api_episodeFiles = f"{url_api_sonarr}episodeFile/{episode_file_id}?apikey={apikey_sonarr}" + url_sonarr_api_episodeFiles = f"{url_api_sonarr()}episodeFile/{episode_file_id}?apikey={apikey_sonarr}" else: return