From bce41d8002baade23cb1b16f9fbd9fd2f556dd90 Mon Sep 17 00:00:00 2001 From: panni Date: Fri, 5 Jul 2019 03:25:02 +0200 Subject: [PATCH] core: update to subliminal_patch:head; scandir: docker/bazarr compat, might fix #461 --- libs/subliminal_patch/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/subliminal_patch/core.py b/libs/subliminal_patch/core.py index 2963988e9..363477e1f 100644 --- a/libs/subliminal_patch/core.py +++ b/libs/subliminal_patch/core.py @@ -581,7 +581,7 @@ def _search_external_subtitles(path, languages=None, only_one=False, scandir_gen subtitles = {} _scandir = _scandir_generic if scandir_generic else scandir 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') return _search_external_subtitles(path, languages, only_one, True) if not entry.is_file(follow_symlinks=False):