Skip to content

Instantly share code, notes, and snippets.

@OliverUv
Created June 19, 2014 23:45
Show Gist options
  • Save OliverUv/1003760656bbfc4a5388 to your computer and use it in GitHub Desktop.
Save OliverUv/1003760656bbfc4a5388 to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
EXARGS=2
E_BADARGS=65
if [ $# -ne $EXARGS ] ; then
echo "Usage: $(basename $0) archive-file playlist-url"
exit $E_BADARGS
else
youtube-dl --download-archive "$1" -f best -o '%(playlist)s/%(playlist_index)s-%(title)s-%(id)s.%(ext)s' "$2"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment