diff options
author | Abdulmohsen <[email protected]> | 2021-06-26 16:58:48 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-26 09:58:48 -0400 |
commit | 2b67c5bcba5e15af6983c8c786898434f9c3c2ca (patch) | |
tree | faa1d46f0f4d2367753a51cd0d8d928311cc71f6 | |
parent | 92e0d13913cca747b6620888d429c770c3a4b3b8 (diff) | |
download | bazarr-2b67c5bcba5e15af6983c8c786898434f9c3c2ca.tar.gz bazarr-2b67c5bcba5e15af6983c8c786898434f9c3c2ca.zip |
Fixed file encoding guessing by extending Arabic, Farsi and Persian language possible encoding.v0.9.6-beta.34
-rw-r--r-- | libs/subliminal_patch/subtitle.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/subliminal_patch/subtitle.py b/libs/subliminal_patch/subtitle.py index 980b67663..7223a7824 100644 --- a/libs/subliminal_patch/subtitle.py +++ b/libs/subliminal_patch/subtitle.py @@ -178,7 +178,7 @@ class Subtitle(Subtitle_): # arabian/farsi elif self.language.alpha3 in ('ara', 'fas', 'per'): - encodings.extend(['windows-1256', 'utf-16']) + encodings.extend(['windows-1256', 'utf-16', 'utf-16le', 'ascii', 'iso-8859-6']) elif self.language.alpha3 == 'heb': encodings.extend(['windows-1255', 'iso-8859-8']) elif self.language.alpha3 == 'tur': |