mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-02-12 17:03:59 +08:00
Fix to ignore subtitles files with an unsupported encoding #66
This commit is contained in:
parent
3251dc6466
commit
80f0660643
1 changed files with 27 additions and 24 deletions
|
@ -32,8 +32,11 @@ def store_subtitles(file):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
try:
|
||||||
subtitles = core.search_external_subtitles(file)
|
subtitles = core.search_external_subtitles(file)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
for subtitle, language in subtitles.iteritems():
|
for subtitle, language in subtitles.iteritems():
|
||||||
if str(language) != 'und':
|
if str(language) != 'und':
|
||||||
actual_subtitles.append([str(language), path_replace_reverse(os.path.join(os.path.dirname(file), subtitle))])
|
actual_subtitles.append([str(language), path_replace_reverse(os.path.join(os.path.dirname(file), subtitle))])
|
||||||
|
|
Loading…
Reference in a new issue