feat(dl): add tag_rules to conditionally swap the group tag

This commit is contained in:
imSp4rky
2026-08-04 09:42:42 -06:00
parent 051f1e668f
commit 3e0d7b5f75
9 changed files with 598 additions and 3 deletions
+2
View File
@@ -130,6 +130,7 @@ class Config:
self.redact_paths: bool = kwargs.get("redact_paths", True)
self.language_tags: dict = kwargs.get("language_tags") or {}
self.tag_rules: list = kwargs.get("tag_rules") or []
self.dual_multi_mode: str = (kwargs.get("dual_multi_mode") or "strict").lower()
self.output_template: dict = kwargs.get("output_template") or {}
folder_cfg = self.output_template.pop("folder", "")
@@ -203,6 +204,7 @@ class Config:
"edition",
"repack",
"lang_tag",
"title_type",
}
unsafe_chars = r'[<>:"/\\|?*]'