Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.39 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [ -w $1 ]; then
  4.     echo "Missing URL"
  5.     exit 1
  6. fi
  7. if [ -w $2 ]; then
  8.     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
  9.     exit 0
  10. fi
  11.     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