#!/usr/bin/env sh
set -eou pipefail

#    --write-description \
#    --write-info-json \
#    --write-annotations \
#    --write-all-thumbnails \
#    --write-auto-sub \
youtube-dl \
    --ignore-errors \
    --geo-bypass \
    --sub-lang en --embed-subs \
    --output "%(title)s.%(ext)s" \
    --add-metadata \
    --embed-thumbnail \
    --download-archive downloaded.txt \
    -a -