SHARE
TWEET

Untitled

a guest Oct 20th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top