Skip to content

Commit

Permalink
Fix for bad logging to history when manually downloading a subtitles.
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus65535 committed Mar 17, 2019
1 parent b247500 commit 2392d45
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions bazarr/get_subtitle.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,13 @@ def manual_download_subtitle(path, language, hi, subtitle, provider, providers_a
'BAZARR Post-processing result for file ' + path + ' : Nothing returned from command execution')
else:
logging.info('BAZARR Post-processing result for file ' + path + ' : ' + out)

return message

if media_type == 'series':
reversed_path = path_replace_reverse(path)
else:
reversed_path = path_replace_reverse_movie(path)

return message, reversed_path, downloaded_language_code2, downloaded_provider, subtitle.score
else:
logging.error(
"BAZARR Tried to manually download a subtitles for file: " + path + " but we weren't able to do (probably throttled by " + str(
Expand Down

0 comments on commit 2392d45

Please sign in to comment.