scripts

misc scripts and tools
git clone git://git.2f30.org/scripts
Log | Files | Refs

playvid (303B)


      1 #!/bin/sh
      2 
      3 # play online streaming videos
      4 # depends: youtube-dl mplayer
      5 
      6 if test -z "$1"; then
      7     echo usage: $(basename $0) url && exit 1
      8 fi
      9 
     10 # trick browser handlers with proto rewriting, undo that here
     11 URL=$(echo $1 | sed 's|video://|http://|')
     12 
     13 V=$(youtube-dl -g "$URL")
     14 mplayer -really-quiet "$V"