mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
updated libs to fix guessit and subliminal. Fixes #1080
This commit is contained in:
parent
319d418af8
commit
0625f7f3c0
263 changed files with 28711 additions and 12615 deletions
|
@ -1124,7 +1124,7 @@ def import_subs(filename):
|
|||
if not core.GETSUBS:
|
||||
return
|
||||
try:
|
||||
subliminal.cache_region.configure('dogpile.cache.memory')
|
||||
subliminal.region.configure('dogpile.cache.dbm', arguments={'filename': 'cachefile.dbm'})
|
||||
except:
|
||||
pass
|
||||
|
||||
|
@ -1139,9 +1139,9 @@ def import_subs(filename):
|
|||
|
||||
logger.debug("Attempting to download subtitles for {0}".format(filename), 'SUBTITLES')
|
||||
try:
|
||||
video = subliminal.scan_video(filename, subtitles=True, embedded_subtitles=True)
|
||||
subtitles = subliminal.download_best_subtitles({video}, languages, hearing_impaired=False)
|
||||
subliminal.save_subtitles(subtitles)
|
||||
video = subliminal.scan_video(filename)
|
||||
subtitles = subliminal.download_best_subtitles({video}, languages)
|
||||
subliminal.save_subtitles(video, subtitles[video])
|
||||
except Exception as e:
|
||||
logger.error("Failed to download subtitles for {0} due to: {1}".format(filename, e), 'SUBTITLES')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue