linux 下载音乐(基本修复所有错误已经完全可以下载了)

sh/bash/dash/ksh/zsh等Shell脚本
benqlk
帖子: 21
注册时间: 2007-09-18 7:55
送出感谢: 0
接收感谢: 0

linux 下载音乐(基本修复所有错误已经完全可以下载了)

#1

帖子 benqlk » 2007-12-13 14:45

刚开始玩linux不久的时候 发现原来linux下没有什么下载音乐的工具(当时我连linux的基础都很差)于是我就想到了写这个脚本 不过我相信努力才是知识的来源 在写这个脚本的过程中我感受到了人的温暖(在这里我要谢谢springwind)他教给了我很多知识


代码如下:
#!/bin/bash
#检测一些必要的工具 和路径
if [ -d ~/Music ];then
echo "下载的音乐将会保存到 ~/Music 文件夹下"
else
echo "~/Music 文件夹不存在 脚本将会自动创建"
mkdir ~/Music
fi
if [ -s /usr/bin/axel ];then
echo "检测到你已经安装了axel 将会成为你默认的下载工具"
else
echo "你还没有安装axel 多线程下载工具,将会自动选择单线程工具wget下载。如果你的系统是ubuntu你可以执行:sudo apt-get install axel 下载并安装axel."
fi
if [ -s /usr/bin/mid3v2 ];then
echo "检测到mid3v2会把你音乐的tag都删除掉,预防出现乱码"
else
echo "你还没有安装mid3v2,这个工具 可以去掉音乐里面的tag(乱码的根源),如果你的系统是ubuntu你可以执行:sudo apt-get install python-mutagen下载并安装."
fi
if [ -e file ];then
rm file
fi
if [ -e file_1 ];then
rm file_1
fi
if [ -e size ];then
rm size
fi
if [ -e size_1 ];then
rm size_1
fi
#核心部分(提取连接 和把中文转换成url编码)
#把中文转换成16进制数字和字母不变
a=`echo "$1" | iconv -c -f utf-8 -t gb2312 | LANG=C sed 's/./&\n/g' | sed -n '$!l' |
while read str;do
str=${str%$}
if [ ${#str} -eq 3 ];then
printf "%%%X" "0${str}"
elif [ "X${str}" == "X" ];then
echo -n '%20'
else
echo -n $str
fi
done
echo`

wget "http://mp3.baidu.com/m?f=ms&tn=baidump3 ... "$a"&lm=-1" -O file #下载网页的源代码
iconv -c -f gb2312 -t utf8 file |grep -m 20 "M</td>"|awk -F">" '{print $2}'|awk -F"<" '{print $1} ' >size #找到下载音乐文件的对应后缀
iconv -c -f gb2312 -t utf8 file |grep -m 20 "<td class=d><a href="|awk -F"," '{print $2}'|awk -F"&" '{print $1}'>>size # 提取出20个有效的下载连接里的要转换成url编码的连接符
iconv -c -f gb2312 -t utf8 file |grep -m 20 "[wm][mp][a3]</td>"|awk -F">" '{print $2}'|awk -F"<" '{print $1}' >>size #找到下载文件的大小

awk '{a[NR]=$0}END{for(i=1;i<=NR/3;i++)printf "(%d)\t%s\t%s\t%s\n",i,a,a[i+NR/3],a[i+40]}' size >size_1 #
cat size_1

read -p "请选择你要下载第几首:" c
f=`cat size_1 | sed -n "${c}p" | awk '{print $NF}'` #提取你要下载的取文件后缀
b=`iconv -c -f gb2312 -t utf8 file |grep -m $c "<td class=d><a href=" | sed -n "${c}p" |awk -F"," '{print $2}'|awk -F"&" '{print $1}' ` #提取你要下载文件的第 2连接(有了这个这个连接就能找到下载源文件)
#把连接里的中文转换成url
c=`echo "$b" | iconv -c -f utf-8 -t gb2312 | LANG=C sed 's/./&\n/g' | sed -n '$!l' |
while read str;do
str=${str%$}
if [ ${#str} -eq 3 ];then
printf "%%%X" "0${str}"
elif [ "X${str}" == "X" ];then
echo -n '%20'
else
echo -n $str
fi
done
echo`
url_1=`iconv -c -f gb2312 -t utf8 file |grep -m 1 "<td class=d><a href="|awk -F"\"" '{print $2}'|awk -F"," 'BEGIN{OFS=","}{$2="'$c'&word=mp3"}NF'` #找到下载第1连接的源文件

wget "$url_1" -O file_1 #下载第1连接的源文件
iconv -c -f gb2312 -t utf8 file_1 |grep -m 1 "<a href"|awk -F"\"" '{print $2}' >url_2
#下载部分

h=`cat url_2`
if [ -s /usr/bin/axel ];then
axel -n 10 -o ~/Music/"$1.$f" "$h" #在这里你可以改变你的下载路径
else
wget -t 5 -c -i url_2 -O ~/Music/"$1.$f" #下载音乐
fi
if [ -s /usr/bin/mid3v2 ];then
mid3v2 -D ~/Music/"$1.$f"
fi
rm file file_1 url_2 size size_1

————————————————————————————————————————————————————
把代码保存成url.sh
然后: sudo chmod u+x url.sh
运行:./url.sh '搜索音乐名字' (记住在输入但引号的时候要中文输入关掉)
______________________________________________________________________________
实例:
benqlk@benqlk-laptop:~$ sudo chmod u+x url.sh
benqlk@benqlk-laptop:~$ ./url.sh '流星雨'
下载的音乐将会保存到 ~/Music 文件夹下
你还没有安装axel 多线程下载工具,将会自动选择单线程工具wget下载。如果你的系统是ubuntu你可以执行:sudo apt-get install axel 下载并安装axel.
检测到mid3v2会把你音乐的tag都删除掉,预防出现乱码
--14:46:35-- http://mp3.baidu.com/m?f=ms&tn=baidump3 ... 3%EA&lm=-1
=> `file'
正在解析主机 mp3.baidu.com... 220.181.38.70
正在连接 mp3.baidu.com|220.181.38.70|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度: 未指定 [text/html]

[ <=> ] 70,231 7.13K/s

14:46:59 (7.12 KB/s) - `file' 被保存 [70231]

(1) 2.1 M 流星雨 wma
(2) 0.7 M 流星雨 mp3
(3) 0.7 M 流星雨 mp3
(4) 2.2 M 流星雨 wma
(5) 2.2 M 流星雨 mp3
(6) 4.2 M 流星雨 wma
(7) 4.2 M 流星雨 mp3
(8) 5.0 M 流星雨 mp3
(9) 0.7 M 流星雨 mp3
(10) 1.6 M 流星雨 mp3
(11) 4.2 M 流星雨 wma
(12) 2.1 M 流星雨 wma
(13) 4.2 M 流星雨 wma
(14) 4.2 M 流星雨 mp3
(15) 4.2 M 流星雨 mp3
(16) 4.2 M 流星雨 mp3
(17) 2.1 M 流星雨 mp3
(18) 2.1 M 流星雨 mp3
(19) 2.2 M 流星雨 mp3
(20) 1.9 M 流星雨 mp3
请选择你要下载第几首:
上次由 benqlk 在 2007-12-13 22:03,总共编辑 5 次。
loogson
帖子: 15
注册时间: 2006-11-29 14:50
送出感谢: 0
接收感谢: 0

#2

帖子 loogson » 2007-12-13 15:36

发现一bug,运行 url.sh liuhen 下载下来的文件名不对。源文件是liuhen.mp3,下载后变成liuhen.liuhen,另外,我下载中文名的似乎不行,信息如下:


abc@abc:~/Desktop$ ./url.sh 流痕
下载的音乐将会保存到 ~/Music 文件夹下
你还没有安装axel 多线程下载工具,将会自动选择单线程工具wget下载。如果你的系统是ubuntu你可以执行:sudo apt-get install axel 下载并安装axel.
你还没有安装mid3v2,这个工具 可以去掉音乐里面的tag(乱码的根源),如果你的系统是ubuntu你可以执行:sudo apt-get install python-mutagen下载并安装.
--16:18:16-- http://mp3.baidu.com/m?f=ms&tn=baidump3 ... ord=&lm=-1
=> `file'
正在解析主机 mp3.baidu.com... 220.181.38.70
Connecting to mp3.baidu.com|220.181.38.70|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:未指定 [text/html]

[ <=> ] 12,123 --.--K/s

16:18:16 (163.25 KB/s) - `file' saved [12123]

请选择你要下载第几首:
grep: invalid max count
: 不支持的主题.
在 url_2 中找不到 URL。
abc@abc:~/Desktop$ locale
LANG=zh_CN.GB18030
LC_CTYPE="zh_CN.GB18030"
LC_NUMERIC="zh_CN.GB18030"
LC_TIME="zh_CN.GB18030"
LC_COLLATE="zh_CN.GB18030"
LC_MONETARY="zh_CN.GB18030"
LC_MESSAGES="zh_CN.GB18030"
LC_PAPER="zh_CN.GB18030"
LC_NAME="zh_CN.GB18030"
LC_ADDRESS="zh_CN.GB18030"
LC_TELEPHONE="zh_CN.GB18030"
LC_MEASUREMENT="zh_CN.GB18030"
LC_IDENTIFICATION="zh_CN.GB18030"
LC_ALL=




LZ加油
benqlk
帖子: 21
注册时间: 2007-09-18 7:55
送出感谢: 0
接收感谢: 0

#3

帖子 benqlk » 2007-12-13 17:47

好的 谢谢 我今晚在看看
benqlk
帖子: 21
注册时间: 2007-09-18 7:55
送出感谢: 0
接收感谢: 0

#4

帖子 benqlk » 2007-12-13 18:01

原来是我们的locale 不同 我的是:
benqlk@benqlk-laptop:~$ locale
LANG=zh_CN.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=
当初设计的时候只考虑到我电脑本地使用的字符编码

你只要把里面的utf-8 字符改成你的locale 字符编码就可以了
上次由 benqlk 在 2007-12-13 18:40,总共编辑 1 次。
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
送出感谢: 0
接收感谢: 7 次
联系:

#5

帖子 BigSnake.NET » 2007-12-13 18:27

loogson 写了:发现一bug,运行 url.sh liuhen 下载下来的文件名不对。源文件是liuhen.mp3,下载后变成liuhen.liuhen,另外,我下载中文名的似乎不行,信息如下:


abc@abc:~/Desktop$ ./url.sh 流痕
下载的音乐将会保存到 ~/Music 文件夹下
你还没有安装axel 多线程下载工具,将会自动选择单线程工具wget下载。如果你的系统是ubuntu你可以执行:sudo apt-get install axel 下载并安装axel.
你还没有安装mid3v2,这个工具 可以去掉音乐里面的tag(乱码的根源),如果你的系统是ubuntu你可以执行:sudo apt-get install python-mutagen下载并安装.
--16:18:16-- http://mp3.baidu.com/m?f=ms&tn=baidump3 ... ord=&lm=-1
=> `file'
正在解析主机 mp3.baidu.com... 220.181.38.70
Connecting to mp3.baidu.com|220.181.38.70|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:未指定 [text/html]

[ <=> ] 12,123 --.--K/s

16:18:16 (163.25 KB/s) - `file' saved [12123]

请选择你要下载第几首:
grep: invalid max count
: 不支持的主题.
在 url_2 中找不到 URL。
abc@abc:~/Desktop$ locale
LANG=zh_CN.GB18030
LC_CTYPE="zh_CN.GB18030"
LC_NUMERIC="zh_CN.GB18030"
LC_TIME="zh_CN.GB18030"
LC_COLLATE="zh_CN.GB18030"
LC_MONETARY="zh_CN.GB18030"
LC_MESSAGES="zh_CN.GB18030"
LC_PAPER="zh_CN.GB18030"
LC_NAME="zh_CN.GB18030"
LC_ADDRESS="zh_CN.GB18030"
LC_TELEPHONE="zh_CN.GB18030"
LC_MEASUREMENT="zh_CN.GB18030"
LC_IDENTIFICATION="zh_CN.GB18030"
LC_ALL=




LZ加油
用UTF8吧
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
头像
xiooli
帖子: 6956
注册时间: 2007-11-19 21:51
来自: 成都
送出感谢: 0
接收感谢: 3 次
联系:

#6

帖子 xiooli » 2007-12-29 19:22

楼主辛苦了,非常好用,如果能提供多选和退回重选的功能就更perfect了。赞一个先! :em38 :em50
Joolix live OS: http://joolix.com

代码: 全选

dpkg -l|awk '/^rc/{print $2}'|sudo xargs dpkg -P
头像
trigger
帖子: 1585
注册时间: 2006-10-25 18:08
送出感谢: 0
接收感谢: 0

#7

帖子 trigger » 2008-01-02 13:09

有个小问题,如果碰到403错误会失去响应
zhangfor
帖子: 44
注册时间: 2007-10-20 10:41
送出感谢: 0
接收感谢: 0

#8

帖子 zhangfor » 2008-01-04 16:43

也用过了,非常好,不过用axel好象不如wget好用,刚下载了<天路>,正在听,感谢楼主,向楼学习!
tongttt
帖子: 444
注册时间: 2007-11-27 22:20
送出感谢: 0
接收感谢: 0
联系:

#9

帖子 tongttt » 2008-01-04 16:58

刚用了一下,非常不错
谢谢搂主了
zhangfor
帖子: 44
注册时间: 2007-10-20 10:41
送出感谢: 0
接收感谢: 0

#10

帖子 zhangfor » 2008-01-07 20:41

#把中文转换成16进制数字和字母不变
a=`echo "$1" | iconv -c -f utf-8 -t gb2312 | LANG=C sed 's/./&\n/g' | sed -n '$!l' |
while read str;do
str=${str%$}
if [ ${#str} -eq 3 ];then
printf "%%%X" "0${str}"
elif [ "X${str}" == "X" ];then
echo -n '%20'
else
echo -n $str
fi
done
echo


请教楼主:
LANG=C
在这里是什么作用啊?
头像
eagle5678
帖子: 1819
注册时间: 2006-07-08 14:07
送出感谢: 14 次
接收感谢: 1 次

#11

帖子 eagle5678 » 2008-01-23 10:40

xiooli 写了:楼主辛苦了,非常好用,如果能提供多选和退回重选的功能就更perfect了。赞一个先! :em38 :em50
有时会出现HTTP/1.1 404 Not Found

这时若能返回再选更佳。
头像
qqttdh
帖子: 896
注册时间: 2007-07-20 22:15
送出感谢: 0
接收感谢: 0

#12

帖子 qqttdh » 2008-01-30 21:14

zhangfor 写了:#把中文转换成16进制数字和字母不变
a=`echo "$1" | iconv -c -f utf-8 -t gb2312 | LANG=C sed 's/./&\n/g' | sed -n '$!l' |
while read str;do
str=${str%$}
if [ ${#str} -eq 3 ];then
printf "%%%X" "0${str}"
elif [ "X${str}" == "X" ];then
echo -n '%20'
else
echo -n $str
fi
done
echo


请教楼主:
LANG=C
在这里是什么作用啊?
C -------- ASCII
头像
qqttdh
帖子: 896
注册时间: 2007-07-20 22:15
送出感谢: 0
接收感谢: 0

#13

帖子 qqttdh » 2008-01-31 13:11

read -p "请选择你要下载第几首:" c
f=`cat size_1 | sed -n "${c}p" | awk '{print $NF}'` #提取你要下载的取文件后缀

代码: 全选

name=`cat size_1 | sed -n "${c}p" | awk '{print $4}'` #提取歌曲名
我觉得加上这句可能会好一些,很多时候我都不知道歌曲的全名
luoshu
帖子: 11
注册时间: 2007-12-20 19:51
来自: Mars
送出感谢: 0
接收感谢: 0

发现一BUG

#14

帖子 luoshu » 2008-02-19 17:11

ls@ubuntu:~$ ./automp3download '三国恋'
下载的音乐将会保存到 ~/音乐 文件夹下
检测到你已经安装了axel 将会成为你默认的下载工具
检测到mid3v2会把你音乐的tag都删除掉,预防出现乱码
--17:00:45-- http://mp3.baidu.com/m?f=ms&tn=baidump3 ... 1%B5&lm=-1
=> `file'
正在解析主机 mp3.baidu.com... 220.181.38.70
正在连接 mp3.baidu.com|220.181.38.70|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度: 未指定 [text/html]

[ <=> ] 67,749 153.45K/s

17:00:45 (153.20 KB/s) - `file' 被保存 [67749]

(1) 3.7 M 三国恋 mp3
(2) 3.7 M 三国恋 mp3
(3) 5.6 M 三国恋 mp3
(4) 1.9 M 三国恋 wma
(5) 3.7 M 三国恋 mp3
(6) 1.9 M 三国恋 wma
(7) 3.7 M 三国恋 mp3
(8) 1.6 M 三国恋 mp3
(9) 2.4 M 三国恋 wma
(10) 3.8 M 三国恋 mp3
(11) 3.7 M 三国恋 mp3
(12) 3.7 M 三国恋 mp3
(13) 3.7 M 三国恋 mp3
(14) 5.6 M 三国恋 冠军庆功超 mp3
(15) 5.6 M 三国恋 mp3
(16) 3.7 M 三国恋 mp3
(17) 5.6 M 三国恋 mp3
(18) 5.6 M 三国恋 mp3
(19) 1.2 M 三国恋 wma
(20) 1.9 M 三国恋 wma
请选择你要下载第几首:3
--17:00:52-- http://220.181.38.82/m?ct=134217728&tn= ... lpams3.mp3,,[%C8%FD%B9%FA%C1%B5]&si=%C8%FD%B9%FA%C1%B5;;tank;;55630;;55630&lm=16777216
=> `file_1'
正在连接 220.181.38.82:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
来自 220.181.38.82 的cookie试图设置域名为 baidu.com

长度: 未指定 [text/html]

[ <=> ] 2,284 --.--K/s

17:00:53 (4.38 MB/s) - `file_1' 被保存 [2284]

Initializing download: http://www.cqdxc.com/inc/editor/UploadF ... 346555.mp3
File size: 3891328 bytes
Opening output file /home/ls/音乐/三国恋.mp3
State file found: 4185257 bytes downloaded, -293929 to go.
Starting download

,,,,,,,,,, ,,,,,,,,,, ,,,,,,,,,, ,,,,,,,... .......... [ 37.4KB/s]
[100%] .......... .......... .......... .......... .......... [ 77.8KB/s]
[100%] .......... .......... .......... .......... .......... [ 87.5KB/s]
[100%] .......... .......... .......... .......... .......... [ 93.6KB/s]
[100%] .......... .......... .......... .......... .......... [ 96.4KB/s]
[100%] .......... .......... .......... .......... .......... [ 99.5KB/s]
[100%] .......... .......... .......... .......... .......... [ 100.9KB/s]
[100%] .......... .......... .......... .......... .......... [ 97.0KB/s]
[100%] .......... .......... .......... .......... .......... [ 98.1KB/s]
[100%] .......... .......... .......... .......... .......... [ 99.6KB/s]
[100%] .......... .......... .......... .......... .......... [ 100.2KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.0KB/s]
[100%] .......... .......... .......... .......... .......... [ 102.9KB/s]
[100%] .......... .......... .......... .......... .......... [ 103.5KB/s]
[100%] .......... .......... .......... .......... .......... [ 103.6KB/s]
[100%] .......... .......... .......... .......... .......... [ 102.9KB/s]
[100%] .......... .......... .......... .......... .......... [ 103.9KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.0KB/s]
[100%] .......... .......... .......... .......... .......... [ 103.4KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.9KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.8KB/s]
[100%] .......... .......... .......... .......... .......... [ 103.2KB/s]
[100%] .......... .......... .......... .......... .......... [ 103.1KB/s]
[100%] .......... .......... .......... .......... .......... [ 103.8KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.0KB/s]
[100%] .......... .......... .......... .......... .......... [ 103.5KB/s]
[100%] .......... .......... .......... .......... .......... [ 103.5KB/s]
[100%] .......... .......... .......... .......... .......... [ 103.8KB/s]
[100%] .......... .......... .......... .......... .......... [ 103.7KB/s]
[100%] .......... .......... .......... .......... .......... [ 103.9KB/s]
[100%] .......... .......... .......... .......... .......... [ 103.9KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.1KB/s]
[100%] .......... .......... .......... .......... .......... [ 103.5KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.2KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.0KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.1KB/s]
[100%] .......... .......... .......... .......... .......... [ 103.9KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.2KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.4KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.4KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.7KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.9KB/s]
[100%] .......... .......... .......... .......... .......... [ 103.1KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.7KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.9KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.7KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.1KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.9KB/s]
[100%] .
Connection 1 finished
,......... .......... .......... .......... .......... [ 105.2KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.7KB/s]
[100%] .......... .......... .......... .......... .......... [ 105.0KB/s]
[100%] .......... .......... .......... .......... .......... [ 105.2KB/s]
[100%] .......... .......... .......... .......... .......... [ 105.3KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.7KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.4KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.5KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.7KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.4KB/s]
[100%] .......... .......... .......... .......... .......... [ 103.9KB/s]
[100%] .......... .......... .......... .......... .......... [ 103.9KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.0KB/s]
[100%] .......... .......... .......... .......... .......... [ 103.7KB/s]
[100%] .......... .......... .......... .......... .......... [ 103.4KB/s]
[100%] .......... .......... .......... .......... .......... [ 103.5KB/s]
[100%] .......... .......... .......... .......... .......... [ 103.9KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.3KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.0KB/s]
[100%] .......... .......... .......... .......... .......... [ 103.9KB/s]
[100%] .......... .......... .......... .......... .......... [ 103.9KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.1KB/s]
[100%] .......... .......... .......... .......... .......... [ 103.9KB/s]
[100%] .......... .......... .......... .......... .......... [ 103.9KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.1KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.1KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.2KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.3KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.3KB/s]
[100%] .......... .......... .......... .......... .......... [ 104.3KB/s]
[100%] .......... .......... .......... .......... .......... [ 103.9KB/s]
[100%] .......... .......... .......... .......... .......... [ 103.6KB/s]
[100%] .......... .......... .......... .......... .......... [ 103.0KB/s]
[100%] .......... .......... .......... .......... .......... [ 102.9KB/s]
[100%] .......... .......... .......... .......... .......... [ 102.4KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.8KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.6KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.4KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.7KB/s]
[100%] .......... .......... .......... .......... .......
Connection 2 finished
,,,,,,,,,, ,,,,,,,,,, ,,,,,,,,,, ,,,,,,,,,, ,,,,,,,... [ 101.8KB/s]
[100%] .......... .......... .......... .......... .......... [ 100.6KB/s]
[100%] .......... .......... .......... .......... .......... [ 100.3KB/s]
[100%] ..........
Connection 0 finished
,,,,,,,,,, .......... .......... .......... .......... [ 100.6KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.2KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.2KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.3KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.4KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.5KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.5KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.5KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.5KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.5KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.6KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.6KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.7KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.8KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.7KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.7KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.8KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.3KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.3KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.3KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.3KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.3KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.4KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.1KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.3KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.0KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.4KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.5KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.6KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.6KB/s]
[100%] .......... .......... ....
Connection 3 finished
,,,,,,,,,, ,,,,,,,,,, ,,,,...... .......... .......... [ 101.5KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.2KB/s]
[100%] .......... .......... .......... .......... .......... [ 100.9KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.4KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.4KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.2KB/s]
[100%] .......... .......... .......... .......... .......... [ 101.3KB/s]
[100%] .......... .......... .......... .......... .......... [ 100.8KB/s]
[100%] .......... .......... .......... .......... .......... [ 100.3KB/s]
[100%] .......... .......... .......... .......... .......... [ 100.0KB/s]
[100%] .......... .......... .......... .......... .......... [ 99.7KB/s]
[100%] .......... .......... .......... .......... .......... [ 99.7KB/s]
[100%] .......... .......... .......... .......... .......... [ 99.0KB/s]
[100%] .......... .......... .......... .......... .......... [ 99.0KB/s]
[100%] .......... .......... .......... .......... .......... [ 98.5KB/s]
[100%] .......... .......... .......... .......... .......... [ 98.2KB/s]
[100%] .......... .......... .......... .......... .......... [ 97.6KB/s]
[100%] .....
Connection 6 finished
,,,,,..... .......... .......... .......... .......... [ 97.5KB/s]
[100%] .......... .......... .......... .......... .......... [ 97.5KB/s]
[100%] .......... .......... .......... .......... .......... [ 97.4KB/s]
[100%] .......
Connection 8 timed out
,,,,,,,... .......... .......... .......... .......... [ 96.9KB/s]
[100%] .......... .......... .......... .......... .......... [ 65.4KB/s]
[100%] .......... .......... .......... .......... .......... [ 65.2KB/s]
[100%] .......... .......... .......... .......... .......... [ 65.0KB/s]
[100%] .......... .......... .......... .......... .......... [ 64.8KB/s]
[100%] .......... .......... ..
Connection 5 timed out
,,,,,,,,,, ,,,,,,,,,, ,,........ .......... .......... [ 64.3KB/s]
[100%] .......... .......... .......... .......... .......... [ 64.6KB/s]
[100%] .......... .......... .......... .......... .......... [ 64.5KB/s]
[100%] .......... .......... .......... .......... .......... [ 64.3KB/s]
[100%] .......... .......... .......... ....
Connection 4 timed out
Connection 7 timed out
Connection 9 timed out
,,,,,,,,,, ,,,,,,,,,, ,,,,,,,,,, ,,,,...... .......... [ 63.8KB/s]
[100%] .......... .......... .......... .......... .......... [ 63.9KB/s]
[100%] .......... .......... .......... .......... .......... [ 64.1KB/s]
[100%] .......... .......... .......... .
Connection 4 finished
,,,,,,,,,, ,,,,,,,,,, ,,,,,,,,,, ,......... .......... [ 63.9KB/s]
[100%] .......... .......... .......... .......... .......... [ 63.8KB/s]
[100%] .......... .......... .......... .......... .......... [ 63.8KB/s]
[100%] .......... .......... .......... .......... .......... [ 63.9KB/s]
[100%] .......... .......... .......... .......... .......... [ 64.1KB/s]
[100%] .......... .......... .......... .......... .......... [ 64.3KB/s]
[100%] .......... .......... .......... .......... .......... [ 64.4KB/s]
[100%] .......... .......... .......... .......... .......... [ 64.5KB/s]
[100%] .......... .......... .......... .......... .......... [ 64.7KB/s]
[100%] .......... .......... .......... .......... .......... [ 64.9KB/s]
[100%] .......... .......... .......... .......... .......... [ 65.0KB/s]
[100%] .......... .......... .......... .......... .......... [ 65.1KB/s]
[100%] .......... .......... .......... .......... .......... [ 65.3KB/s]
[100%] .......... .......... .......... .......... .......... [ 65.5KB/s]
[100%] .......... .......... .......... .......... .......... [ 65.3KB/s]
[100%] .......... .......... .......... .......... .......... [ 65.5KB/s]
[100%] .......... .......... .......... .......... .......... [ 65.7KB/s]
[100%] .......... .......... .......... .......... .......... [ 65.8KB/s]
[100%] .......... .......... .......... .......... .......... [ 65.8KB/s]
[100%] .......... .......... .......... .......... .......... [ 65.8KB/s]
[100%] .......... .......... .......... .......... .......... [ 66.0KB/s]
[100%] .......... .......
Connection 9 finished
,,,,,,,,,, ,,,,,,,... .......... .......... .......... [ 66.2KB/s]
[100%] .......... .......... .......... .......... .......... [ 66.3KB/s]
[100%] .......... .......... .......... .......... .......... [ 66.3KB/s]
[100%] .......... .......... .......... .......... .......... [ 66.4KB/s]
[100%] .......... .......... .......... .......... .......... [ 66.5KB/s]
[100%] .......... .......... .......... .......... .......... [ 66.7KB/s]
[100%] .......... .......... .......... .......... .......... [ 66.2KB/s]
[100%] .......... .......... .......... .......... .......... [ 66.2KB/s]
[100%] .......... .......... .......... .......... .......... [ 66.3KB/s]
[100%] .......... .......... .......... .......... .......... [ 66.4KB/s]
[100%] .......... .......... .......... .......... .......... [ 66.5KB/s]
[100%] .......... .......... .......... .......... .......... [ 66.6KB/s]
[100%] .......... .....
Connection 7 finished
,,,,,,,,,, ,,,,,..... .......... .......... .......... [ 66.7KB/s]
[100%] .......... .......... .......... .......... .......... [ 66.3KB/s]
[100%] .......... .......... .......... .......... .......... [ 66.2KB/s]
[100%] .......... .......... .......... .......... .......... [ 66.3KB/s]
[100%] .......... .......... .......... .......... .......... [ 66.4KB/s]
[100%] .......... .......... .......... ......
Connection 5 finished
,,,,,,,,,, ,,,,,,,,,, ,,,,,,,,,, ,,,,,,.... .......... [ 66.5KB/s]
[100%] .......... .......... .......... .......... .......... [ 66.3KB/s]
[100%] .......... .......... .......... .......... .......... [ 66.1KB/s]
[100%] .......... .......... .......... .......... .......... [ 66.1KB/s]
[100%] .......... .......... .......... .......... .......... [ 66.2KB/s]
[100%] .......... .......... .......... .......... .......... [ 65.1KB/s]
[100%] .......... .......... .......... .......... .......... [ 56.9KB/s]
[100%] .......... .......... .......... .......... .......... [ 56.9KB/s]
[100%] .......... .......... .......... .......... .......... [ 56.4KB/s]
[100%] .......... .......... .......... .......... .......... [ 55.4KB/s]
[100%] .......... .......... .......... .......... .......... [ 55.3KB/s]
[100%] .......... .......... .......... .......... .......... [ 55.2KB/s]
[100%] .......... .......... .......... .......... .......... [ 54.4KB/s]
[100%] ..
Connection 8 timed out
,,........ .......... .......... .......... .......... [ 43.1KB/s]
[100%] .......... ..
Connection 8 finished
,,,,,,,,,, ,,
然后就不动了
luoshu
帖子: 11
注册时间: 2007-12-20 19:51
来自: Mars
送出感谢: 0
接收感谢: 0

建议把mid3v2改为mid3iconv

#15

帖子 luoshu » 2008-02-19 17:14

mid3iconv -e GBK $1$f
可以消除tag乱码
回复

回到 “Shell脚本”