-
Notifications
You must be signed in to change notification settings - Fork 546
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
NETEASE API post do not return the expected data #4
Comments
Which song do you want to download? Could you please tell me the keyword? |
It seems that the error is not specific to any song. I tried several keywords and the same error occur. $ python main.py -k "red"
[ 0 ] QQ | 0:03:43 - 3.41MB - Red - Taylor Swift - Red
[ 1 ] QQ | 0:04:14 - 3.88MB - Walk Away - Dia Frampton - Red
[ 2 ] QQ | 0:02:48 - 2.57MB - Red - 王嘉尔、ICE - Red
[ 3 ] QQ | 0:03:41 - 3.38MB - Red (In the Style of Taylor Swift) - Ameritz Top Tracks - Red
[ 4 ] QQ | 0:08:27 - 7.75MB - Red (DJ Vivona Remix) - Mephia、Bobby Starrr - Red
[ 5 ] NETEASE | 0:03:21 - 3.07MB - 빨개요 - 泫雅 - A Talk
请输入要下载的歌曲序号,多个序号用空格隔开:5
Traceback (most recent call last):
File "main.py", line 111, in <module>
main()
File "main.py", line 100, in main
downloadByIndexList(choices.split(),music_list)
File "main.py", line 46, in downloadByIndexList
addons.get(music['source']).download(music)
File "/home/test/Tools/music-dl/core/extractors/netease.py", line 110, in netease_download
music_download(music)
File "/home/test/Tools/music-dl/core/common.py", line 23, in music_download
wget.download(music['url'], out=outfile)
File "/usr/lib/python3.7/site-packages/wget.py", line 526, in download
(tmpfile, headers) = ulib.urlretrieve(binurl, tmpfile, callback)
File "/usr/lib/python3.7/urllib/request.py", line 245, in urlretrieve
url_type, path = splittype(url)
File "/usr/lib/python3.7/urllib/parse.py", line 956, in splittype
match = _typeprog.match(url)
TypeError: cannot use a string pattern on a bytes-like object |
Sorry, this error did not occur on my computer.
|
Could you access this url |
Oops... 404 Seems my IP address is blocked by netease. |
The url in r.json() is
None
, and it will cause error inmusic_download
command.The text was updated successfully, but these errors were encountered: