-
-
Save emonkak/1122606 to your computer and use it in GitHub Desktop.
agqr on linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
URI="http://www.uniqueradio.jp/agplayer/ag_movie.asx" | |
SID="bffcd85ca284fa09d605095f02210251114ac3a0" | |
MPLAYER_OPTS="-quiet -demuxer lavf -lavfdopts cryptokey=${SID}" | |
PLAYLIST_P=true | |
while getopts ":1234amvh" opt; do | |
case ${opt} in | |
1 | 2 | 3 | 4) | |
URI="mms://1134mb-live${opt}.daijinakoto.com/uniqueradio/2ch_movie" | |
PLAYLIST_P=false | |
;; | |
a) | |
URI="http://www.uniqueradio.jp/agplayer/ag.asx" | |
PLAYLIST_P=true | |
;; | |
m) | |
URI="http://www.uniqueradio.jp/agplayer/ag_movie.asx" | |
PLAYLIST_P=true | |
;; | |
h | *) | |
cat << EOF | |
Usage: $(basename ${0}) [OPTION]... | |
-1 mms://1134mb-live1.daijinakoto.com/uniqueradio/2ch_movie | |
-2 mms://1134mb-live2.daijinakoto.com/uniqueradio/2ch_movie | |
-3 mms://1134mb-live3.daijinakoto.com/uniqueradio/2ch_movie | |
-4 mms://1134mb-live4.daijinakoto.com/uniqueradio/2ch_movie | |
-a http://www.uniqueradio.jp/agplayer/ag.asx | |
-m http://www.uniqueradio.jp/agplayer/ag_movie.asx | |
-h display this help and exit | |
EOF | |
exit 1 | |
;; | |
esac | |
done | |
if ${PLAYLIST_P}; then | |
MPLAYER_OPTS="${MPLAYER_OPTS} -playlist" | |
fi | |
exec mplayer ${MPLAYER_OPTS} "${URI}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment