asyncyt.builder module

builder.py

Builds yt-dlp CLI commands from a DownloadConfig.

asyncyt.builder.build_download_command(ytdlp_path: str, ffmpeg_path: str, url: str, config: DownloadConfig) List[str][source]

Build a complete yt-dlp CLI command.

FFmpeg is invoked via --external-downloader ffmpeg so that its -progress pipe:1 output lands on yt-dlp’s stdout and can be parsed in real-time by AsyncYT’s line reader.

Parameters:
  • ytdlp_path – Path to yt-dlp binary.

  • ffmpeg_path – Path to ffmpeg binary.

  • url – Target URL.

  • config – DownloadConfig instance.