]> git.donarmstrong.com Git - bin.git/commitdiff
add show bp video
authorDon Armstrong <don@donarmstrong.com>
Tue, 13 Jul 2010 02:52:14 +0000 (02:52 +0000)
committerDon Armstrong <don@donarmstrong.com>
Tue, 13 Jul 2010 02:52:14 +0000 (02:52 +0000)
show_bp_video [new file with mode: 0755]

diff --git a/show_bp_video b/show_bp_video
new file mode 100755 (executable)
index 0000000..974d3c6
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+URL=$(GET $1|perl -ne 'if (/embed/ && m/src=\"([^"]+)/) { print $1.qq(\n)}'|xargs GET|perl -ne 'if (/mms/ && m/HREF="([^"]+)/) {print $1.qq(\n); exit}')
+
+exec mplayer $URL
\ No newline at end of file