diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-09-05 18:08:09 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-09-05 18:08:09 +0200 |
commit | d7d8a5b31099f1f15ee1b7b7437840a3d2625a13 (patch) | |
tree | f95b9539057f5389c7008883734739bbd0e3d726 /etc/functions/youtube-watch | |
parent | 6868af923c67a1d83c8655376ed6e03792195147 (diff) |
Moved rrad and youtube-watch into scripts
Diffstat (limited to 'etc/functions/youtube-watch')
-rw-r--r-- | etc/functions/youtube-watch | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/etc/functions/youtube-watch b/etc/functions/youtube-watch deleted file mode 100644 index 18e473a..0000000 --- a/etc/functions/youtube-watch +++ /dev/null @@ -1,24 +0,0 @@ -## vim:ft=zsh -## Watch a youtube video -## requires youtube-dl and mplayer -## Usage: youtube-dl [-c] <video url> [mplayer options] -typeset video -typeset -i cache=0 - -while [[ $* == -* ]] { - case $1 in - -c) cache=1 ;; - -|--) shift; break ;; - esac - shift -} - -video=$1 -shift - -if ((cache)) { - youtube-dl -o /tmp/youtube.flv $video - mplayer $* /tmp/youtube.flv -} else { - mplayer $* $(youtube-dl -gb $video) -} |