Skip to content

Commit

Permalink
Fixed an error in previous commit that would prevent episodes syncing.
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus65535 committed Oct 26, 2023
1 parent 0d882b3 commit 6925a97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bazarr/sonarr/sync/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6925a97

Please sign in to comment.