aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorpanni <[email protected]>2019-02-27 21:55:37 +0100
committerpanni <[email protected]>2019-02-27 21:55:37 +0100
commit4db7ccea7d823b3023ab451a932cd8a14cb4f761 (patch)
tree3c19c7077f4a5f1f8f530d70260dafadd401bcdd
parent48b8ffae40eef574f4d8b3a867451f5a9f9e12fd (diff)
downloadbazarr-4db7ccea7d823b3023ab451a932cd8a14cb4f761.tar.gz
bazarr-4db7ccea7d823b3023ab451a932cd8a14cb4f761.zip
list_subtitles: use only_one
-rw-r--r--bazarr/list_subtitles.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/bazarr/list_subtitles.py b/bazarr/list_subtitles.py
index 504daf57e..3425f0f51 100644
--- a/bazarr/list_subtitles.py
+++ b/bazarr/list_subtitles.py
@@ -56,7 +56,7 @@ def store_subtitles(file):
try:
# fixme: set subliminal_patch.core.CUSTOM_PATHS to a list of absolute folders or subfolders to support
# subtitles outside the media file folder
- subtitles = search_external_subtitles(file)
+ subtitles = search_external_subtitles(file, only_one=settings.general.getboolean('single_language'))
except Exception as e:
logging.exception("BAZARR unable to index external subtitles.")
pass
@@ -137,10 +137,9 @@ def store_subtitles_movie(file):
# fixme: set subliminal_patch.core.CUSTOM_PATHS to a list of absolute folders or subfolders to support
# subtitles outside the media file folder
- subtitles = search_external_subtitles(file)
brazilian_portuguese = [".pt-br", ".pob", "pb"]
try:
- subtitles = core.search_external_subtitles(file)
+ subtitles = search_external_subtitles(file, only_one=settings.general.getboolean('single_language'))
except Exception as e:
logging.exception("BAZARR unable to index external subtitles.")
pass