Add podcast template options to CLI

Expose podcast_folder_template and podcast_file_template as CLI options in CliConfig (defaulting to base_downloader_sig values) and pass them through in main when constructing the downloader. This enables custom folder/file templates for podcasts.
This commit is contained in:
Rafael Moraes
2026-02-26 18:41:08 -03:00
parent c928ea27e8
commit b8e685b133
2 changed files with 18 additions and 0 deletions
+2
View File
@@ -112,9 +112,11 @@ async def main(config: CliConfig):
shaka_packager_path=config.shaka_packager_path,
album_folder_template=config.album_folder_template,
compilation_folder_template=config.compilation_folder_template,
podcast_folder_template=config.podcast_folder_template,
no_album_folder_template=config.no_album_folder_template,
single_disc_file_template=config.single_disc_file_template,
multi_disc_file_template=config.multi_disc_file_template,
podcast_file_template=config.podcast_file_template,
no_album_file_template=config.no_album_file_template,
playlist_file_template=config.playlist_file_template,
date_tag_template=config.date_tag_template,
+16
View File
@@ -302,6 +302,14 @@ class CliConfig:
].default,
),
]
podcast_folder_template: Annotated[
str,
option(
"--podcast-folder-template",
help="Podcast folder template",
default=base_downloader_sig.parameters["podcast_folder_template"].default,
),
]
no_album_folder_template: Annotated[
str,
option(
@@ -326,6 +334,14 @@ class CliConfig:
default=base_downloader_sig.parameters["multi_disc_file_template"].default,
),
]
podcast_file_template: Annotated[
str,
option(
"--podcast-file-template",
help="Podcast file template",
default=base_downloader_sig.parameters["podcast_file_template"].default,
),
]
no_album_file_template: Annotated[
str,
option(