Skip to content

Instantly share code, notes, and snippets.

@SourceCode
Created January 6, 2023 23:05
Show Gist options
  • Save SourceCode/e8a1d927fefec22de1b28c1adeedb3a1 to your computer and use it in GitHub Desktop.
Save SourceCode/e8a1d927fefec22de1b28c1adeedb3a1 to your computer and use it in GitHub Desktop.
Use youtube-dl and aria2c to download videos in the file URL_LIST.txt while logging completed files to existing.txt
youtube-dl --external-downloader aria2c --external-downloader-args "-x 16 -j 16 -c --max-file-not-found=10 --max-tries=20 --retry-wait=20" --format "bestvideo+bestaudio[ext=m4a]/bestvideo+bestaudio/best" --merge-output-format mp4 -a URL_LIST.txt -i --download-archive ~/existing.txt -o '%(epoch)s-%(title)s.%(ext)s'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment