Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

百度音乐FLAC下载失效,并部分歌手搜索出错 #94

Open
macdavis opened this issue Dec 24, 2016 · 1 comment
Open

百度音乐FLAC下载失效,并部分歌手搜索出错 #94

macdavis opened this issue Dec 24, 2016 · 1 comment

Comments

@macdavis
Copy link

OS: macOS 10.12.2 (16C67)

运行python music.baidu.com.py http://music.baidu.com/song/117948039 -f

抓到的却是mp3的地址
URL:http://yinyueshiting.baidu.com/data2/music/e27fc0530f4a014d62ce2d42c1f56073/125590384/11794803954000128.mp3?xcode=97f8c89670f9e69035dc224202a6daff [4626309/4626309]

并且运行python music.baidu.com.py http://music.baidu.com/album/288364131 -f会报错,提示

Traceback (most recent call last):
File "music.baidu.com.py", line 247, in
main(args.url)
File "music.baidu.com.py", line 236, in main
x.url_parser()
File "music.baidu.com.py", line 121, in url_parser
self.get_album_infos()
File "music.baidu.com.py", line 169, in get_album_infos
d = modificate_text(self.song_infos[0]['album_name'] + ' - ' + self.song_infos[0]['artist_name'])
IndexError: list index out of range

同样,运行python music.baidu.com.py http://music.baidu.com/song/288364202 -f报错,

Traceback (most recent call last):
File "music.baidu.com.py", line 247, in
main(args.url)
File "music.baidu.com.py", line 236, in main
x.url_parser()
File "music.baidu.com.py", line 125, in url_parser
self.get_song_infos()
File "music.baidu.com.py", line 133, in get_song_infos
song_info['song_id'] = unicode(j['data']['songList'][0]['songId'])
IndexError: string index out of range

@PeterDing
Copy link
Owner

很长时间没有更新脚本了,一定会出错的。。。
等我更新一下吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants