feat(dl): add --repack flag to insert REPACK tag in output filenames

This commit is contained in:
Andy
2026-02-22 11:42:35 -07:00
parent 8a4399665e
commit 8b63be4f3e
4 changed files with 14 additions and 0 deletions

View File

@@ -406,6 +406,7 @@ class dl:
@click.option(
"--tag", type=str, default=None, help="Set the Group Tag to be used, overriding the one in config if any."
)
@click.option("--repack", is_flag=True, default=False, help="Add REPACK tag to the output filename.")
@click.option(
"--tmdb",
"tmdb_id",
@@ -508,6 +509,7 @@ class dl:
no_proxy: bool,
profile: Optional[str] = None,
proxy: Optional[str] = None,
repack: bool = False,
tag: Optional[str] = None,
tmdb_id: Optional[int] = None,
tmdb_name: bool = False,
@@ -897,6 +899,9 @@ class dl:
config=self.service_config, cdm=self.cdm, proxy_providers=self.proxy_providers, profile=self.profile
)
if repack:
config.repack = True
if tag:
config.tag = tag