From 4db7ccea7d823b3023ab451a932cd8a14cb4f761 Mon Sep 17 00:00:00 2001 From: panni Date: Wed, 27 Feb 2019 21:55:37 +0100 Subject: list_subtitles: use only_one --- bazarr/list_subtitles.py | 5 ++--- 1 file 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 -- cgit v1.2.3