Created
June 6, 2013 18:54
-
-
Save Paethon/5723950 to your computer and use it in GitHub Desktop.
Short shell script to speed up youtube-dl using axel (using multiple connections)
Warning: Won't work for downloading playlists etc. in current form
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
CONNECTIONS=5 # Specify how many connections axel should use | |
# Get URL and Title of video using youtube-dl | |
url=`youtube-dl --get-url $1` | |
echo "Got URL" | |
title=`youtube-dl --get-title $1` | |
echo "Got Title :"$title | |
# Download using axel | |
axel --alternate --num-connections=$CONNECTIONS --output="$title.mp4" "$url" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment