summaryrefslogtreecommitdiffhomepage
path: root/libs/subliminal_patch
diff options
context:
space:
mode:
authorAbdulmohsen <[email protected]>2021-06-26 16:58:48 +0300
committerGitHub <[email protected]>2021-06-26 09:58:48 -0400
commit2b67c5bcba5e15af6983c8c786898434f9c3c2ca (patch)
treefaa1d46f0f4d2367753a51cd0d8d928311cc71f6 /libs/subliminal_patch
parent92e0d13913cca747b6620888d429c770c3a4b3b8 (diff)
downloadbazarr-2b67c5bcba5e15af6983c8c786898434f9c3c2ca.tar.gz
bazarr-2b67c5bcba5e15af6983c8c786898434f9c3c2ca.zip
Fixed file encoding guessing by extending Arabic, Farsi and Persian language possible encoding.v0.9.6-beta.34
Diffstat (limited to 'libs/subliminal_patch')
-rw-r--r--libs/subliminal_patch/subtitle.py2
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':