mirror of https://github.com/morpheus65535/bazarr
Fix to ignore subtitles files with an unsupported encoding #66
This commit is contained in:
parent
3251dc6466
commit
80f0660643
|
@ -32,8 +32,11 @@ def store_subtitles(file):
|
|||
pass
|
||||
|
||||
|
||||
try:
|
||||
subtitles = core.search_external_subtitles(file)
|
||||
|
||||
except:
|
||||
pass
|
||||
else:
|
||||
for subtitle, language in subtitles.iteritems():
|
||||
if str(language) != 'und':
|
||||
actual_subtitles.append([str(language), path_replace_reverse(os.path.join(os.path.dirname(file), subtitle))])
|
||||
|
|
Loading…
Reference in New Issue