commit 2f5643522c2c11ebb7c449c56151b1c1154c6dfb
parent 08415306f4f6505b959641028fe4228844c36364
Author: Haris <haris@feanor.lan>
Date: Sun, 3 Nov 2013 16:35:00 +0200
added cache option
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/surf/yt b/surf/yt
@@ -2,6 +2,7 @@
format="--max-quality 35" # leave empty for default
# format="-f 35/45" # leave empty for default
player="mplayer -idx"
+playercache="2048"
url="$1"
-$player `youtube-dl $format -g $url`
+$player -cache $playercache `youtube-dl $format -g $url`