|
|
|
|
|
by tentacleuno
1619 days ago
|
|
> This serves as a valuable lesson, though: archive everything from YouTube channels you like! Just threw together a script to do just this, if anyone wants it: download () {
local directory="/archives/YouTube Archives/$1"
mkdir -p "$directory"
pushd "$directory"
# youtube-dl --download-archive https://youtube.com/$2 -o "%(title).%(ext)"
youtube-dl --playlist-reverse -o '%(playlist_index)s - %(title)s.%(ext)s' --write-annotations --download-archive .archive --add-metadata --write-info-json --write-thumbnail -f bestvideo[ext=vp9]+bestaudio[ext=opus]/bestvideo+bestaudio --merge-output-format mkv --all-subs --embed-subs -i --embed-thumbnail "https://youtube.com/$2"
popd
}
download "Jim Can't Swim" c/JCSCriminalPsychology
# etc. etc.
Throw this into a weekly cronjob and you should be golden! |
|