调试模式下模式3增加一条.nfo不存在的警告

This commit is contained in:
lededev
2022-04-14 01:29:00 +08:00
parent 499baf51fb
commit ae6d27a454

View File

@@ -356,12 +356,17 @@ def movie_lists(source_folder, regexstr: str) -> typing.List[str]:
continue continue
if cliRE and not cliRE.search(absf) or trailerRE.search(full_name.name): if cliRE and not cliRE.search(absf) or trailerRE.search(full_name.name):
continue continue
if main_mode == 3 and nfo_skip_days > 0 and file_modification_days( if main_mode == 3:
full_name.with_suffix('.nfo')) <= nfo_skip_days: nfo = full_name.with_suffix('.nfo')
skip_nfo_days_cnt += 1 if not nfo.is_file():
if debug: if debug:
print(f"[!]Skip movie by it's .nfo which modified within {nfo_skip_days} days: '{absf}'") print(f"[!]Metadata {nfo.name} not found for '{absf}'")
continue continue
if nfo_skip_days > 0 and file_modification_days(nfo) <= nfo_skip_days:
skip_nfo_days_cnt += 1
if debug:
print(f"[!]Skip movie by it's .nfo which modified within {nfo_skip_days} days: '{absf}'")
continue
total.append(absf) total.append(absf)
if skip_failed_cnt: if skip_failed_cnt: