scripts

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

commit aae5acba097db9ff2230ee5574362b17b5628835
parent 8f86f60d025bff832dc0605c64dd19fe1d8e574d
Author: lostd <lostd@2f30.org>
Date:   Mon Aug 26 01:14:35 +0300

move to youtube-dl, the video proto hack

Diffstat:
playvid | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/playvid b/playvid @@ -1,12 +1,14 @@ #!/bin/sh # play online streaming videos -# depends: get_flash_videos mplayer +# depends: youtube-dl mplayer if test -z "$1"; then echo usage: $(basename $0) url && exit 1 fi -C="^Content-Location: " -V=$(get_flash_videos -r medium -i "$1" | grep "$C" | sed "s/$C//") +# trick browser handlers with proto rewriting, undo that here +URL=$(echo $1 | sed 's|video://|http://|') + +V=$(youtube-dl -g "$URL") mplayer -really-quiet "$V"