Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ -w $1 ]; then
- echo "Missing URL"
- exit 1
- fi
- if [ -w $2 ]; then
- youtube-dl -f 'm4a' -o '/home/${USER}/Music/%(title)s.f%(format_id)s.%(ext)s' $1 --download-archive /home/${USER}/.archive.txt --no-playlist -i
- exit 0
- fi
- youtube-dl -f 'm4a' -o '/home/${USER}/Music/%(title)s.f%(format_id)s.%(ext)s' $1 --download-archive /home/${USER}/.archive.txt -i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement