commit f1929ffdbb1c9a947eb102af210cf7607cf27a33 parent 601e7e8f5e3989fe35caf9a953e352c95074ff6b Author: cipher <haris@2f30.org> Date: Tue, 1 Apr 2014 13:56:40 +0300 Let curl handle https and feed mplayer Diffstat:
M | surf/yt | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/surf/yt b/surf/yt @@ -1,8 +1,8 @@ #!/bin/sh -format="--max-quality 35" # leave empty for default +format="--max-quality 135" # leave empty for default # format="-f 35/45" # leave empty for default player="mplayer -idx" playercache="2048" url="$1" -$player -cache $playercache `youtube-dl $format -g $url` +curl `youtube-dl $format -g $url` | mplayer -cache $playercache -