scripts

misc scripts and tools
git clone git://git.2f30.org/scripts.git
Log | Files | Refs

commit de3c83b23033445a8a5c068817779bd9b3326d50
parent f1929ffdbb1c9a947eb102af210cf7607cf27a33
Author: cipher <haris@2f30.org>
Date:   Tue Apr  1 18:58:06 +0300

F{ix,uck} youtube

Diffstat:
surf/yt | 11++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/surf/yt b/surf/yt @@ -5,4 +5,13 @@ player="mplayer -idx" playercache="2048" url="$1" -curl `youtube-dl $format -g $url` | mplayer -cache $playercache - + +yttest="youtube" + +if test "${url#*$yttest}" != "$url" +then + format="-f 18/22" # leave empty for default + curl `youtube-dl --prefer-ffmpeg $format -g $url` | mplayer -cache $playercache - +else + $player -cache $playercache `youtube-dl $format -g $url` +fi