vp

git clone git://oldgit.suckless.org/vp/
Log | Files | Refs | README

vp-google (266B)


      1 #!/usr/bin/env rc
      2 #
      3 # Pattern: ^http://video.google.com/videoplay\?
      4 
      5 . vp-base $0 $*
      6 
      7 vp_data $* | vp_awk '
      8 	/videoUrl(=|\\x3d)/ {
      9 		$0 = urldec($0, "\\\\x")
     10 		sub(/.*videoUrl=/, "")
     11 		sub(/&.*/, "")
     12 		set("vp_result", urldec($0))
     13 		exit 0
     14 	}'
     15 vp_result $vp_result
     16