Open GoogleCodeExporter opened 9 years ago
改了一下,在找不到的时候换别的方法:
QIANQIAN_URI(){
local htm
[ "$Debug" = 1 ] && echo "gb: $1" >&2
[ "$Debug" = 1 ] && echo "Title: $2" >&2
# qfield: 1 - title 2 - artist 3 - lyric content
# pageflag: num of page
htm="`wget "http://www.qianqian.com/lrcresult.php?qfield=1&pageflag=1&qword="$2"" -q
-T 10 -O- 2>/dev/null`"
a="http://www.qianqian.com/""`echo "$htm" | grep -Fim1 lrcresult_frame | awk -F\\\"
'{print $6}'`"
[ "$Debug" = 1 ] && echo "A $a" >&2
b="`wget "$a" --referer=www.qianqian.com -O- -q | grep -Fim1 downfromlrc | awk
-F\\\" '{print $6}'`"
[ "$Debug" = 1 ] && echo "B $b" >&2
if [ "$b" != "" ]; then
echo -n 'http://www.qianqian.com/'"$b";
else
htm="`wget "http://www.qianqian.com/lrcresult.php?qfield=3&pageflag=1&qword="$1""
-q -T 10 -O- 2>/dev/null`"
a="http://www.qianqian.com/""`echo "$htm" | grep -Fim1 lrcresult_frame | awk -F\\\"
'{print $6}'`"
[ "$Debug" = 1 ] && echo "A $a" >&2
b="`wget "$a" --referer=www.qianqian.com -O- -q | grep -Fim1 downfromlrc | awk
-F\\\" '{print $6}'`"
[ "$Debug" = 1 ] && echo "B $b" >&2
if [ "$b" != "" ]; then
echo -n 'http://www.qianqian.com/'"$b";
else
htm="`wget "http://www.qianqian.com/lrcresult.php?qfield=3&pageflag=1&qword="$2""
-q -T 10 -O- 2>/dev/null`"
a="http://www.qianqian.com/""`echo "$htm" | grep -Fim1 lrcresult_frame | awk
-F\\\" '{print $6}'`"
[ "$Debug" = 1 ] && echo "A $a" >&2
b="`wget "$a" --referer=www.qianqian.com -O- -q | grep -Fim1 downfromlrc | awk
-F\\\" '{print $6}'`"
[ "$Debug" = 1 ] && echo "B $b" >&2
if [ "$b" != "" ]; then
echo -n 'http://www.qianqian.com/'"$b";
fi
fi
fi
# referer="www.qianqian.com"
}
Original comment by Henry.Hu...@gmail.com
on 1 May 2009 at 7:29
受不了这个千千歌词,emotional
flutter直接搜歌曲名没有,搜歌词内容有……
而且歌曲名是对的……
Original comment by Henry.Hu...@gmail.com
on 1 May 2009 at 7:31
呵呵,谢谢,稍后我把你的代码合并一下.
Original comment by bones7...@gmail.com
on 4 May 2009 at 6:50
Original issue reported on code.google.com by
Henry.Hu...@gmail.com
on 1 May 2009 at 6:57