Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Input
- address=$1
- video_filename="$(youtube-dl --get-filename -o '%(title)s.%(ext)s' --restrict-filenames $address)"
- video_url="$(youtube-dl --get-url $address)"
- #user_agent="$(youtube-dl --dump-user-agent $address)"
- # modify aria2c options as needed
- aria2c -x16 -s20 -k1M --out=$video_filename $video_url
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement