From f9433e589fed1747b563199f78b88e4f74f84cc9 Mon Sep 17 00:00:00 2001 From: lededev Date: Fri, 3 Sep 2021 19:10:49 +0800 Subject: [PATCH] mode 3 also need check this match pattern --- AV_Data_Capture.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AV_Data_Capture.py b/AV_Data_Capture.py index 8ae7039..eb65298 100755 --- a/AV_Data_Capture.py +++ b/AV_Data_Capture.py @@ -57,7 +57,7 @@ def movie_lists(root, escape_folder): total += movie_lists(f, escape_folder) elif os.path.splitext(f)[1].upper() in file_type: absf = os.path.abspath(f) - if conf.main_mode() == 3 or (not is_link(absf) and not re.match(r'.*-trailer\..*', f, re.IGNORECASE)): + if not re.match(r'.*-trailer\..*', f, re.IGNORECASE) and (conf.main_mode() == 3 or not is_link(absf)): total.append(absf) return total