mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-12 17:57:43 +08:00
list_subtitles: use only_one
This commit is contained in:
parent
48b8ffae40
commit
4db7ccea7d
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue