strictly restrict to .nfo in order to exclude .nfo\w+

This commit is contained in:
lededev
2022-04-10 01:26:47 +08:00
parent 9e9b799441
commit 109cc3717b

View File

@@ -365,7 +365,7 @@ def movie_lists(source_folder, regexstr: str) -> typing.List[str]:
skip_numbers = set() skip_numbers = set()
success_folder = Path(conf.success_folder()).resolve() success_folder = Path(conf.success_folder()).resolve()
for f in success_folder.glob(r'**/*'): for f in success_folder.glob(r'**/*'):
if not re.match(r'\.nfo', f.suffix, re.IGNORECASE): if not re.match(r'\.nfo$', f.suffix, re.IGNORECASE):
continue continue
if file_modification_days(f) > nfo_skip_days: if file_modification_days(f) > nfo_skip_days:
continue continue