mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 13:23:18 -07:00
Set expected, but passing list
This commit is contained in:
parent
22daf02167
commit
eb1ee8b5f5
1 changed files with 1 additions and 1 deletions
|
@ -1144,7 +1144,7 @@ def import_subs(filename):
|
||||||
logger.debug("Attempting to download subtitles for %s" % (filename), 'SUBTITLES')
|
logger.debug("Attempting to download subtitles for %s" % (filename), 'SUBTITLES')
|
||||||
try:
|
try:
|
||||||
video = subliminal.scan_video(filename, subtitles=True, embedded_subtitles=True)
|
video = subliminal.scan_video(filename, subtitles=True, embedded_subtitles=True)
|
||||||
subtitles = subliminal.download_best_subtitles([video], languages, hearing_impaired=False)
|
subtitles = subliminal.download_best_subtitles({video}, languages, hearing_impaired=False)
|
||||||
subliminal.save_subtitles(subtitles)
|
subliminal.save_subtitles(subtitles)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error("Failed to download subtitles for %s due to: %s" % (filename, e), 'SUBTITLES')
|
logger.error("Failed to download subtitles for %s due to: %s" % (filename, e), 'SUBTITLES')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue