yt-dlp Video Downloader
- Check if
$ARGUMENTSprovides a URL. If empty, ask the user for a video URL. - Check if FFmpeg is installed by running
ffmpeg -version. If not installed, prompt the user with OS-specific installation commands and wait for confirmation. Do NOT run yt-dlp without FFmpeg. - Determine the user's requirements (video vs audio, target quality, subtitles, metadata).
- Read
$SKILL_DIR/references/COMMANDS.mdfor format selection syntax and command templates. - Read
$SKILL_DIR/references/TROUBLESHOOTING.mdfor site-specific rules (e.g., requiring cookies or proxies). - Execute the
yt-dlpcommand in the user's downloads folder (e.g.,~/Downloadsor%USERPROFILE%/Downloads). - Verify that the output file downloaded successfully.
- If the download fails, read
$SKILL_DIR/references/TROUBLESHOOTING.mdand match the error type (e.g., HTTP 403, slow speed, missing subtitles) to the corresponding troubleshooting section. Apply the suggested fix and retry once. If the retry also fails, report the error details to the user.
Output
- The executed command
- Brief explanation of the parameters used
- Location of the downloaded file