# HG changeset patch # User Jeff Hammel # Date 1458849196 25200 # Node ID 994bff1b99519292389868d6a7c036ca1956a63d # Parent c1f314c518c9fbfba5d72e0a92f2d385d81ac6a8 a dirty trick that almost works diff -r c1f314c518c9 -r 994bff1b9951 bin/mplayyt.sh --- /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