Replace latin_1 with cp1252, as latin_1 is already in the list with its alias iso-8859-1. Don't know why cp1252 hasn't been included so far.
pull/1038/head
josdion 5 years ago
parent f79faaa5c5
commit 84ad5aaeaa

@ -206,7 +206,7 @@ class Subtitle(Subtitle_):
else:
# Western European (windows-1252) / Northern European
encodings.extend(['latin-1', 'iso-8859-15', 'iso-8859-9', 'iso-8859-4', 'iso-8859-1'])
encodings.extend(['windows-1252', 'iso-8859-15', 'iso-8859-9', 'iso-8859-4', 'iso-8859-1'])
# try to decode
logger.debug('Trying encodings %r', encodings)

Loading…
Cancel
Save