#!/bin/sh if [ $# -ne 1 ]; then echo "Usage: $0 " exit 1 fi exec youtube-dl -o '%(playlist)s/%(playlist_index)s %(title)s.%(ext)s' "https://www.youtube.com/playlist?list=$1"