Skip to content

Instantly share code, notes, and snippets.

@Paethon
Created June 6, 2013 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Paethon/5723950 to your computer and use it in GitHub Desktop.
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
#!/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