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

Netease broken again #8239

Closed
theli-ua opened this issue Jan 15, 2016 · 8 comments
Closed

Netease broken again #8239

theli-ua opened this issue Jan 15, 2016 · 8 comments

Comments

@theli-ua
Copy link

@theli-ua theli-ua commented Jan 15, 2016

Tests in master for extractor will fail.
Looks like they switched download server again.

@theli-ua
Copy link
Author

@theli-ua theli-ua commented Jan 15, 2016

Note, if you switch to m2 and switch to using some chinese DNS server it works just fine.
Support for that could be implemented (for downloads using youtube-dl) using pydns/dnspython. But I doubt that youtube-dl would want such dependency.

Users could also set their resolvers to use one of chinese public DNS servers or even just pu2 m2.music.126.net into their hosts file.

In any case - current m5.music.126.net server hardcoded into youtube-dl doesn't work

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jan 15, 2016

Which URL are you trying to download?

@theli-ua
Copy link
Author

@theli-ua theli-ua commented Jan 15, 2016

@yan12125
eg the one from the tests http://music.163.com/#/song?id=32102397 will get you http://m5.music.126.net/Hj8j3B9wn2TetQue7VJ-iQ==/2901611187169450.mp3 and end up with 404.
So far I've been getting 404 for all links

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jan 15, 2016

When I click play in http://music.163.com/#/song?id=32102397, it says that I have to pay for this song to listen to it:

唱片公司要求,当前资源须付费使用

Which browser are you using? Are you inside Mainland China?

@theli-ua
Copy link
Author

@theli-ua theli-ua commented Jan 15, 2016

I haven't even tried to open it in browser. I just tried to download it using youtube-dl . Its one of the test urls inside extractor/neteasemusic.py
No, I'm not in China

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jan 15, 2016

If a video/song can't be played in browsers, there's nothing much youtube-dl can do. Test cases may become invalid as time goes by. It's possible this song is once free but later requires payment.

@theli-ua
Copy link
Author

@theli-ua theli-ua commented Jan 15, 2016

Sure, but the sond could be downloaded from "http://m2.music.126.net/zUA4iqTZyZFncNkFNUwAjw==/5991238859813420.mp3"
Do you have an example of url that works with youtube-dl?

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jan 15, 2016

Have you changed your DNS settings? m2.music.126.net is resolved to 1.1.1.1, which is apparently not a NetEase IP.

$ curl -v http://m2.music.126.net/Hj8j3B9wn2TetQue7VJ-iQ\=\=/2901611187169450.mp3
*   Trying 1.1.1.1...
* connect to 1.1.1.1 port 80 failed: Connection refused
* Failed to connect to m2.music.126.net port 80: Connection refused
* Closing connection 0
curl: (7) Failed to connect to m2.music.126.net port 80: Connection refused
@yan12125 yan12125 closed this in 3a0a787 Jan 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.