Fix to ignore subtitles files with an unsupported encoding #66

This commit is contained in:
morpheus65535 2018-06-18 19:37:25 -04:00
parent 3251dc6466
commit 80f0660643
1 changed files with 27 additions and 24 deletions

View File

@ -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))])