Skip to content

Instantly share code, notes, and snippets.

@janpecha

janpecha/ytdl

Created Aug 23, 2012
Embed
What would you like to do?
Shortcut for youtube-dl
#!/bin/bash
# saves the path to this script's directory
dir=` dirname $0 `
# absolutizes the path if necessary
if echo $dir | grep -v ^/ > /dev/null; then
dir=` pwd `/$dir
fi
# runs youtube-dl with script's arguments
youtube-dl -t $*
# version: 2012-08-23-1
# based on Nette Test 'run-tests.sh' script
@janpecha

This comment has been minimized.

Copy link
Owner Author

@janpecha janpecha commented Nov 13, 2012

Moved to my scripts repository. Go to http://www.github.com/janpecha/scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment