Skip to content

Instantly share code, notes, and snippets.

@warmwaffles
Last active March 7, 2017 19:49
Show Gist options
  • Save warmwaffles/cadbc9d74626538f23727eb54ce311da to your computer and use it in GitHub Desktop.
Save warmwaffles/cadbc9d74626538f23727eb54ce311da to your computer and use it in GitHub Desktop.
#!/bin/bash
# Usage:
#
# yt-archive.sh <url to playlists>
#
youtube-dl \
--continue \
--retries 100 \
--write-info-json \
--write-description \
--write-annotations \
--write-thumbnail \
--socket-timeout 60 \
--all-subs \
--embed-subs \
--embed-thumbnail \
--add-metadata \
--convert-subs ass \
--no-check-certificate \
--ignore-errors \
--format 'bestvideo+bestaudio/best' \
--merge-output-format mkv \
--output "~/archive/%(uploader)s [%(uploader_id)s]/%(playlist)s/%(playlist_index)s - %(title)s %(id)s.%(ext)s" \
$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment