Remove broken ytdl() function from zshrc
authorJoerg Woelke <joewoe@fsmail.de>
Sun, 16 Aug 2009 14:59:27 +0000 (16:59 +0200)
committerFrank Terbeck <ft@bewatermyfriend.org>
Sun, 16 Aug 2009 15:11:43 +0000 (17:11 +0200)
etc/zsh/zshrc

index c673f73..c5e3c76 100644 (file)
@@ -3471,17 +3471,6 @@ viless() {
     vim --cmd 'let no_plugin_maps = 1' -c "so \$VIMRUNTIME/macros/less.vim" "${@:--}"
 }
 
-# download video from youtube
-ytdl() {
-    emulate -L zsh
-    if ! [[ -n "$2" ]] ; then
-        print "Usage: ydtl http://youtube.com/watch?v=.... outputfile.flv">&2
-        return 1
-    else
-        wget -O${2} "http://youtube.com/get_video?"${${${"$(wget -o/dev/null -O- "${1}" | grep -e watch_fullscreen)"}##*watch_fullscreen\?}%%\&fs=*}
-    fi
-}
-
 # Function Usage: uopen $URL/$file
 #f5# Download a file and display it locally
 uopen() {