Skip to content

Commit

Permalink
Fixed history logging issue for episodes and movies subtitles.
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus65535 committed Oct 1, 2023
1 parent 2467bc0 commit 1f187d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bazarr/api/episodes/episodes_subtitles.py
Expand Up @@ -81,6 +81,8 @@ def patch(self):
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)
Expand Down
2 changes: 2 additions & 0 deletions bazarr/api/movies/movies_subtitles.py
Expand Up @@ -79,6 +79,8 @@ def patch(self):
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:
Expand Down

0 comments on commit 1f187d8

Please sign in to comment.