网易云音乐

Hello,

Thank you so much for your effort maintaining this project!

It seems that the Netease Music updated their api end points Can we add the following to the proxy’s white list and update corresponding PAC file?

http://music.163.com/eapi/song/enhance/player/url
http://music.163.com/eapi/song/enhance/download/url

/eapi/song/enhance/:player_or_download/url

I understand that some of music server are pointing to invalid ips per DNS but I think most of them does work if we can get response from a server in mainland.
I think m2 and m10 are returning invalid address when oversea but most music returned by this api is m8

Thanks again,

Do you mean that this rule is related to the mobile apps? I haven’t checked the mobile apps but these two rules don’t match the PC web version. Still the m10 address is the main address for PC web version currently. Can you show the environment you’re in, like whether it is PC version or mobile apps, the version of mobile apps, etc.?

yes, i can confirm that this is point where iOS App and MacOS’s version are trying to connect

get music:
[02/May/2016:03:24:36 -0400] “POST /eapi/song/enhance/player/url HTTP/1.1” 200 255 “-” “\xE7\xBD\x91\xE6\x98\x93\xE4\xBA\x91\xE9\x9F\xB3\xE4\xB9\x90 3.4.0 rv:368 (iPhone; iPhone OS 9.3.1; en_US)”
[02/May/2016:07:37:24 -0400] “POST /eapi/song/enhance/player/url HTTP/1.1” 200 244 “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/601.5.17 (KHTML, like Gecko)”

copyright:
[02/May/2016:03:08:00 -0400] “POST /eapi/copyright/restrict/ HTTP/1.1” 200 77 “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/601.5.17 (KHTML, like Gecko)”

others, these may not need proxy
[02/May/2016:03:08:00 -0400] “POST /eapi/pl/count HTTP/1.1” 200 4284 “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/601.5.17 (KHTML, like Gecko)”
[02/May/2016:03:24:38 -0400] “POST /eapi/song/lyric HTTP/1.1” 200 102 “-” “\xE7\xBD\x91\xE6\x98\x93\xE4\xBA\x91\xE9\x9F\xB3\xE4\xB9\x90 3.4.0 rv:368 (iPhone; iPhone OS 9.3.1; en_US)”
[02/May/2016:03:24:46 -0400] “POST /eapi/resource/commentInfo/list HTTP/1.1” 200 207 “-” “\xE7\xBD\x91\xE6\x98\x93\xE4\xBA\x91\xE9\x9F\xB3\xE4\xB9\x90 3.4.0 rv:368 (iPhone; iPhone OS 9.3.1; en_US)”

the return looks like
url: ‘http://m8.music.126.net/20160417003854/885d4a1f7d6c23fa895f412e4a53d6ac/ymusic/a75b/6be3/c48d/44be98ee194480256c055a7703f928f4.mp3’,
br: 320000,
size: 8722851,
md5: ‘44be98ee194480256c055a7703f928f4’,
code: 200,
expi: 1200,
type: ‘mp3’,
gain: -1.66,
fee: 0,
uf: null,
payed: 0,
canExtend: false } ],
code: 200 }

To test:
url: ‘http://music.163.com/eapi/song/enhance/player/url’,
method: ‘POST’,

form: { params: ‘FA90B329E9614F79E79598F37DC2EDB430F8378D2A2796338F0BFDEAEF824
A2219F77E9F1A8342E17AEDFE9CB0B8F423F57EE496DF2FF7B49D0AE5580BE5FA5ECB0145C3B107F
945BA025466246243CA4C54CEF774ADA8B963360FCCF34A6A865E9315A4200620273CFA17EDF9FCA
8CD64F56179592CDEC00A9F824D6D19190B11CFA25703A014E14722E822E5807C08100BDBB16AE47
2AD59CEB779C1CFAF270AAC4D4FCCE7AD1E04D1A7486F1E8E87C16AB7BAE34CEF97949818990B32F
7C6B97F9A5383B307F51E9C399980272C75E8EB1256454681C59236F2A1B1D6E27FF7B5AFBFE8DC9BBF49B93E6FABAB74E12A217D7A4EA87163EA03E611B466E4475243B00274DD5FD663650F53AC1206B05DA467104B3D1885B7F35FB0FD603EBB11748B02A295B07764D738912660D20F0992E4CFC809CB9C7C9C3604A18DE76D28FB7A55F876EB26CDD58A786275887B93CF364D6BEA3A4A0377EA5CFEED031CC95A04D28ACCE8BA70950479E53FAADAD82D893323601B37EB4FCDCA02FE828F’ } }

Well I have to further check but anyway thanks for your report.

I have added the url to our PAC. Please double check after a few hours once our servers got auto-updated.
Thanks for your feedback!

https://github.com/uku/Unblock-Youku/commit/58c717d02f94f1f6c7401042a2ad84975168141d