diff --git a/knowledge base/yt-dlp.md b/knowledge base/yt-dlp.md index 2e8c641..8acd4bc 100644 --- a/knowledge base/yt-dlp.md +++ b/knowledge base/yt-dlp.md @@ -13,6 +13,12 @@ python3 -m pip install -U --user yt-dlp # List all available formats. yt-dlp -F AK44wAvv2E4 +# Check what name will be used for the destination. +# Output templates at https://github.com/yt-dlp/yt-dlp#output-template +yt-dlp --get-filename -o "test video.%(ext)s" BaW_jenozKc +yt-dlp --get-filename -o "%(season)s.%(episode_number)02d.%(episode)s.%(ext)s" \ + https://www.crunchyroll.com/some/good/serie + # Download all videos in a YouTube channel. yt-dlp -f "bestvideo+bestaudio/best" -ciw \ -o "%(title)s.%(ext)s" -v https://www.youtube.com/c/pbsspacetime/videos