Fix to ignore subtitles files with an unsupported encoding #66

pull/115/merge
morpheus65535 6 years ago
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…
Cancel
Save