changeset 772:994bff1b9951

a dirty trick that almost works
author Jeff Hammel <k0scist@gmail.com>
date Thu, 24 Mar 2016 12:53:16 -0700
parents c1f314c518c9
children 5fc00e09e805
files bin/mplayyt.sh
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/mplayyt.sh	Thu Mar 24 12:53:16 2016 -0700
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# curl "$(youtube-dl --get-url https://www.youtube.com/watch?v=LI9hJf27JLY | head -n 1)" | mplayer -cache 1024 -
+
+for URL in $@
+do
+    curl "$(youtube-dl --get-url $URL | head -n 1)" | mplayer -cache 1024 -
+done
\ No newline at end of file