Skip to content

Instantly share code, notes, and snippets.

@bafflingscience
Last active April 7, 2020 20:41
Show Gist options
  • Save bafflingscience/fb231bec49969ae780bc8f34123aa68c to your computer and use it in GitHub Desktop.
Save bafflingscience/fb231bec49969ae780bc8f34123aa68c to your computer and use it in GitHub Desktop.
`yttDaily` downloads up to 10 items from each channel listed in the --batch-file, ignoring any previously downloaded videos listed in --download-archive, and adding newly downloaded videos to the --download-archive file.
#!/bin/bash
/Library/Frameworks/Python.framework/Versions/3.8/bin/youtube-dl \
--verbose \
--playlist-items 1-10 \
--download-archive /Users/userman/Archive/downloaded.txt \
--reject-title "^[Tt]op*[0-9]*" \
--add-metadata \
--embed-thumbnail \
--embed-subs \
--sub-lang en \
--sub-format best \
--ignore-errors \
-o "/Volumes/usbSSD/Video/Channels/%(uploader)s/%(upload_date)s - %(title)s.%(ext)s" \
-f "mp4" \
--cookies /Users/userman/Archive/cookies.txt \
--batch-file /Users/userman/Archive/channels.txt \
echo "Great Job Dave! Wow!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment