URI:
       tuplay - scripts - various script and utils
  HTML git clone git://z3bra.org/scripts
   DIR Log
   DIR Files
   DIR Refs
       ---
       tuplay (467B)
       ---
            1 #!/bin/sh
            2 #
            3 # and google keeps changing its API to fuck us up...
            4 
            5 #curl "$(youtube-dl -g $*)" | mplayer -cache 1024 -
            6 #mplayer -really-quiet -cache 1024 "$(youtube-dl -g $* | head -n1)"
            7 
            8 # audio only, video only, both
            9 case $1 in
           10         -a) shift 1; mplayer -quiet -cache 1024 "$(youtube-dl -g $* | sed -n '$p')" ;;
           11         -v) shift 1; mplayer -really-quiet -cache 1024 "$(youtube-dl -g $* | sed -n '1p')" ;;
           12          *) youtube-dl "$*" -o - | mplayer -really-quiet -cache 1024 - ;;
           13