Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- # Download a file from a given url
- if [ -z "$1" ]; then
- echo "Download a video."
- echo "Usage: ydl \"url\""
- else
- youtube-dl --get-filename -o '%(title)s.%(ext)s' --restrict-filenames --yes-playlist --no-mark-watched --all-formats -f 'best[ext=mp4]/best' "$1"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement