update 202605102031
This commit is contained in:
+3
-3
@@ -16,9 +16,9 @@ from services.renamer import RenamerService
|
||||
|
||||
def run_pipeline(target_dir: Path, args, auto_execute=False):
|
||||
"""流水线作业:可被手动或守护进程触发"""
|
||||
files_to_process = target_dir.rglob("*") if args.mode in ["auto", "watch"] else target_dir.glob("*")
|
||||
# 💡 核心修改:废弃平铺的 glob,让所有模式(包括 extract-subs, clean-ads 等)统统使用 rglob 递归深入子目录
|
||||
files_to_process = target_dir.rglob("*")
|
||||
|
||||
# 💡 注意这里:用 media_types_by_root 替换掉最老的 media_types_found
|
||||
media_types_by_root = {}
|
||||
valid_files = []
|
||||
context_cache = {}
|
||||
@@ -149,7 +149,7 @@ def run_pipeline(target_dir: Path, args, auto_execute=False):
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description="🎬 流媒体高级自动化管理工具")
|
||||
parser.add_argument("mode", nargs='?', default="manual", choices=["manual", "auto", "clean-ads", "extract-subs", "watch"])
|
||||
parser.add_argument("mode", nargs='?', default="auto", choices=["manual", "auto", "clean-ads", "extract-subs", "watch"])
|
||||
parser.add_argument("-p", "--path", default=".")
|
||||
parser.add_argument("--extract-internal", action="store_true")
|
||||
parser.add_argument("-t", "--force-type", choices=["tv", "movie"], help="强制指定媒体类型 (tv 或 movie),解决正则误判")
|
||||
|
||||
Reference in New Issue
Block a user