mirror of
https://github.com/glomatico/gamdl.git
synced 2026-06-13 04:05:14 +03:00
Add ffmpeg_path CLI option and pass to downloader
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user