Add ffmpeg_path CLI option and pass to downloader

This commit is contained in:
Rafael Moraes
2026-05-23 12:57:07 -03:00
parent 92b8220c71
commit bd59bb7c98
2 changed files with 9 additions and 0 deletions
+1
View File
@@ -176,6 +176,7 @@ async def main(config: CliConfig):
output_path=config.output_path, output_path=config.output_path,
temp_path=config.temp_path, temp_path=config.temp_path,
nm3u8dlre_path=config.nm3u8dlre_path, nm3u8dlre_path=config.nm3u8dlre_path,
ffmpeg_path=config.ffmpeg_path,
download_mode=config.download_mode, download_mode=config.download_mode,
album_folder_template=config.album_folder_template, album_folder_template=config.album_folder_template,
compilation_folder_template=config.compilation_folder_template, compilation_folder_template=config.compilation_folder_template,
+8
View File
@@ -313,6 +313,14 @@ class CliConfig:
default=base_downloader_sig.parameters["nm3u8dlre_path"].default, default=base_downloader_sig.parameters["nm3u8dlre_path"].default,
), ),
] ]
ffmpeg_path: Annotated[
str,
option(
"--ffmpeg-path",
help="FFmpeg executable path",
default=base_downloader_sig.parameters["ffmpeg_path"].default,
),
]
download_mode: Annotated[ download_mode: Annotated[
DownloadMode, DownloadMode,
option( option(