mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -07:00
add more error logging for subtitles. Helps #678
This commit is contained in:
parent
bc2bab95ee
commit
ff50e5144c
1 changed files with 2 additions and 2 deletions
|
@ -1040,8 +1040,8 @@ def import_subs(filename):
|
|||
video = subliminal.scan_video(filename, subtitles=True, embedded_subtitles=True)
|
||||
subtitles = subliminal.download_best_subtitles([video], languages, hearing_impaired=False)
|
||||
subliminal.save_subtitles(subtitles)
|
||||
except:
|
||||
logger.error("Failed to download subtitles for %s" %(filename), 'SUBTITLES')
|
||||
except Exception as e:
|
||||
logger.error("Failed to download subtitles for %s due to: %s" %(filename, e), 'SUBTITLES')
|
||||
|
||||
def server_responding(baseURL):
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue