aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2020-10-24 17:39:01 -0400
committermorpheus65535 <[email protected]>2020-10-24 17:39:01 -0400
commit52242d72563319c1a85595814233abb19263d30b (patch)
tree895d2b4f42b7235881c07cc74e2da65e34edcc32
parentacbc91f1005418dc5a0a22b3e0bb69ff49513966 (diff)
downloadbazarr-52242d72563319c1a85595814233abb19263d30b.tar.gz
bazarr-52242d72563319c1a85595814233abb19263d30b.zip
Fix for #1170.
-rw-r--r--bazarr/list_subtitles.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bazarr/list_subtitles.py b/bazarr/list_subtitles.py
index 887a9dad6..01f5971ee 100644
--- a/bazarr/list_subtitles.py
+++ b/bazarr/list_subtitles.py
@@ -467,8 +467,12 @@ def guess_external_subtitles(dest_folder, subtitles):
except:
pass
+ # If language is still None (undetected), skip it
+ if not language:
+ pass
+
# Skip HI detection if forced
- if language.forced:
+ elif language.forced:
pass
# Detect hearing-impaired external subtitles not identified in filename