Created
April 3, 2011 17:37
-
-
Save unot/900599 to your computer and use it in GitHub Desktop.
record wma mms streaming from animate.tv
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/zsh | |
if [ $# = 1 ]; then | |
URL=$1 | |
TITLE=`wget -q -O - $URL | perl -nle 'm|<Entry><Title>(.*)</Title>|; print $1' | nkf -w` | |
# DATE=`wget -q -O - $URL | nkf -w | tr -d '\015' | sed -n 's|<Title>\(.*\)</Title>|\1|p' | sed -e 's|/|-|g' | sed -n '2p' | tr -d ' '` | |
# ASXMMS=`wget -q -O - $URL | nkf -w | grep wma` | |
MMS=`wget -q -O - $URL | perl -nle 'm|(mms.*wma)|; print $1'` | |
mimms ${MMS} "${TITLE}.wma" | |
# echo ${MMS} | |
# echo "${TITLE}(${DATE}).wma" | |
# : >"${TITLE}(${DATE}).wma" | |
else | |
echo "usage: $0 http://www.animate.tv/asx/hogehoge.asx" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment