Re:YouTube-dl's first release since June 2021
by gaws on Friday December 17, 2021 @07:33PM
(#29600135)
How did you set this up?
[ Parent
| on HN ]
Re:YouTube-dl's first release since June 2021
by pdimitar on Saturday December 18, 2021 @08:17AM
(#29604266)
Made a config file at the same location where `youtube-dl` stores its.
~/.config/youtube-dl/config.yt-dlp:
--restrict-filenames
--output '%(title)s.%(ext)s'
--ignore-errors
--embed-subs
--all-subs
--format 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best'
--embed-thumbnail
--audio-quality 0
--add-metadata
--xattrs
--xattr-set-filesize
--prefer-free-formats
--geo-bypass
--no-mark-watched
--console-title
--no-warnings
--downloader aria2c
--downloader-args '-j 16 -s 16 -x 16 -k 1M'
Only the last 2 lines are pertinent here but I am including my entire config because it serves me very well.And my ~/.zshrc alias:
alias ytdl="yt-dlp --config-location ~/.config/youtube-dl/config.yt-dlp"