blob: 6409fa15ed4698730821e69de0a9a45dc8d35075 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/bash
# Recover the url.
URL=`xclip -o`
# Determine if it's a youtube video. Returns a result different from 0 if that's the case.
SITE=`expr match "$URL" "http://www.youtube*"`
if [ $SITE != 0 ]; then
# Replace with player of your choice
mplayer -cache 8192 `youtube-dl -g "$URL"`
else
get_flash_videos -y -p "$URL"
fi
|