mirror of
https://github.com/morpheus65535/bazarr
synced 2025-01-31 03:12:12 +00:00
core: update to subliminal_patch:head; scandir: docker/bazarr compat, might fix #461
This commit is contained in:
parent
63fa0e5c76
commit
bce41d8002
1 changed files with 1 additions and 1 deletions
|
@ -581,7 +581,7 @@ def _search_external_subtitles(path, languages=None, only_one=False, scandir_gen
|
||||||
subtitles = {}
|
subtitles = {}
|
||||||
_scandir = _scandir_generic if scandir_generic else scandir
|
_scandir = _scandir_generic if scandir_generic else scandir
|
||||||
for entry in _scandir(dirpath):
|
for entry in _scandir(dirpath):
|
||||||
if not entry.name and not scandir_generic:
|
if (not entry.name or entry.name in ('\x0c', '$', ',', '\x7f')) and not scandir_generic:
|
||||||
logger.debug('Could not determine the name of the file, retrying with scandir_generic')
|
logger.debug('Could not determine the name of the file, retrying with scandir_generic')
|
||||||
return _search_external_subtitles(path, languages, only_one, True)
|
return _search_external_subtitles(path, languages, only_one, True)
|
||||||
if not entry.is_file(follow_symlinks=False):
|
if not entry.is_file(follow_symlinks=False):
|
||||||
|
|
Loading…
Reference in a new issue