dotfiles/home/default/scripts/youtube-archive

18 lines
444 B
Plaintext
Raw Normal View History

#!/usr/bin/env sh
set -eou pipefail
# --write-description \
# --write-info-json \
# --write-annotations \
# --write-all-thumbnails \
youtube-dl \
2022-02-03 11:20:43 -05:00
--format bestvideo+bestaudio \
--ignore-errors \
--geo-bypass \
2022-02-03 11:20:43 -05:00
--write-sub --write-auto-sub --sub-format best --sub-lang en --embed-subs \
--output "%(title)s.%(ext)s" \
--add-metadata \
--embed-thumbnail \
--download-archive downloaded.txt \
-a -