diff options
author | morpheus65535 <[email protected]> | 2023-10-01 14:13:38 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2023-10-01 14:13:38 -0400 |
commit | 1f187d89ca80e3734bf0831e2f7940bb01235695 (patch) | |
tree | c038dd92754b0f51bd3480c35f7ce760db285cd1 | |
parent | 2467bc0bc04fd5b8e39f015bd72cccdd6d1b284b (diff) | |
download | bazarr-1f187d89ca80e3734bf0831e2f7940bb01235695.tar.gz bazarr-1f187d89ca80e3734bf0831e2f7940bb01235695.zip |
Fixed history logging issue for episodes and movies subtitles.
-rw-r--r-- | bazarr/api/episodes/episodes_subtitles.py | 2 | ||||
-rw-r--r-- | bazarr/api/movies/movies_subtitles.py | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/bazarr/api/episodes/episodes_subtitles.py b/bazarr/api/episodes/episodes_subtitles.py index b02d8926a..9207b3c28 100644 --- a/bazarr/api/episodes/episodes_subtitles.py +++ b/bazarr/api/episodes/episodes_subtitles.py @@ -81,6 +81,8 @@ class EpisodesSubtitles(Resource): title, 'series', profile_id=get_profile_id(episode_id=sonarrEpisodeId))) if isinstance(result, list) and len(result): result = result[0] + if isinstance(result, tuple) and len(result): + result = result[0] history_log(1, sonarrSeriesId, sonarrEpisodeId, result) send_notifications(sonarrSeriesId, sonarrEpisodeId, result.message) store_subtitles(result.path, episodePath) diff --git a/bazarr/api/movies/movies_subtitles.py b/bazarr/api/movies/movies_subtitles.py index 5225e82b7..bf7cebebf 100644 --- a/bazarr/api/movies/movies_subtitles.py +++ b/bazarr/api/movies/movies_subtitles.py @@ -79,6 +79,8 @@ class MoviesSubtitles(Resource): sceneName, title, 'movie', profile_id=get_profile_id(movie_id=radarrId))) if isinstance(result, list) and len(result): result = result[0] + if isinstance(result, tuple) and len(result): + result = result[0] history_log_movie(1, radarrId, result) store_subtitles_movie(result.path, moviePath) else: |