UnblockNeteaseMusic / server

Revive unavailable songs for Netease Cloud Music (Refactored & Enhanced version)
GNU Lesser General Public License v3.0
6.45k stars 634 forks source link

Bug in pyncmd and vip #1362

Closed mario6714 closed 9 months ago

mario6714 commented 9 months ago

Bug 描述

Not working pycmd and local vip

预期行为

.

实际行为

.

复现步骤

.

启动命令及环境变量

unblockneteasemusic-win-x64 -o pyncmd kuwo migu kugou bilibili youtube

日志内容

C:\Users\mario\Downloads>set LOG_LEVEL=debug

C:\Users\mario\Downloads>set ENABLE_FLAC=true

C:\Users\mario\Downloads>set ENABLE_LOCAL_VIP=true

C:\Users\mario\Downloads>set FOLLOW_SOURCE_ORDER=true

C:\Users\mario\Downloads>unblockneteasemusic-win-x64 -o pyncmd kuwo migu kugou bilibili youtube INFO: (app) HTTP Server running @ http://0.0.0.0:8080 INFO: (app) HTTPS Server running @ http://0.0.0.0:8081 DEBUG: (server) TUNNEL url: "s6.music.126.net:443" DEBUG: (server) TUNNEL url: "ac.dun.163.com:443" DEBUG: (server) TUNNEL url: "localhost:8081" DEBUG: (server) TUNNEL url: "st.music.163.com:443" DEBUG: (server) TUNNEL url: "st.music.163.com:443" DEBUG: (server) TUNNEL url: "st.music.163.com:443" DEBUG: (server) TUNNEL url: "ac.dun.163.com:443" DEBUG: (server) TUNNEL url: "ac.dun.163.com:443" DEBUG: (server) TUNNEL url: "ghproxy.com:443" DEBUG: (server) TUNNEL url: "gitee.com:443" DEBUG: (server) TUNNEL url: "raw.githubusercontent.com:443" DEBUG: (server) TUNNEL url: "cdn.jsdelivr.net:443" DEBUG: (server) TUNNEL url: "raw.fgit.ml:443" DEBUG: (server) TUNNEL url: "raw.githubusercontent.com:443" DEBUG: (server) TUNNEL url: "cdn.jsdelivr.net:443" DEBUG: (server) TUNNEL url: "betterncm.microblock.cc:443" DEBUG: (server) TUNNEL url: "gitee.com:443" DEBUG: (server) TUNNEL url: "api.github.com:443" DEBUG: (server) TUNNEL url: "acstatic-dun.126.net:443" DEBUG: (server) TUNNEL url: "localhost:8081" DEBUG: (server) TUNNEL url: "localhost:8081" DEBUG: (server) TUNNEL url: "localhost:8081" DEBUG: (server) TUNNEL url: "localhost:8081" DEBUG: (server) TUNNEL url: "localhost:8081" DEBUG: (server) TUNNEL url: "p3.music.126.net:443" DEBUG: (server) TUNNEL url: "d6.music.126.net:443" DEBUG: (hook) Unable to apply the local VIP. err: { "type": "TypeError", "message": "Cannot read properties of undefined (reading 'now')", "stack": TypeError: Cannot read properties of undefined (reading 'now') at C:\snapshot\server\precompiled\app.js at process.processTicksAndRejections (node:internal/process/task_queues:95:5) } DEBUG: (server) TUNNEL url: "d5.music.126.net:443" DEBUG: (hook) Unable to apply the local VIP. err: { "type": "TypeError", "message": "Cannot read properties of undefined (reading 'now')", "stack": TypeError: Cannot read properties of undefined (reading 'now') at C:\snapshot\server\precompiled\app.js at process.processTicksAndRejections (node:internal/process/task_queues:95:5) } DEBUG: (server) TUNNEL url: "s1.ax1x.com:443" DEBUG: (server) TUNNEL url: "p4.music.126.net:443" DEBUG: (server) TUNNEL url: "p4.music.126.net:443" DEBUG: (server) TUNNEL url: "p4.music.126.net:443" DEBUG: (server) TUNNEL url: "p4.music.126.net:443" DEBUG: (server) TUNNEL url: "p4.music.126.net:443" DEBUG: (server) TUNNEL url: "localhost:8081" DEBUG: (server) TUNNEL url: "p1.music.126.net:443" DEBUG: (server) TUNNEL url: "p1.music.126.net:443" DEBUG: (server) TUNNEL url: "p1.music.126.net:443" DEBUG: (server) TUNNEL url: "p1.music.126.net:443" DEBUG: (server) TUNNEL url: "localhost:8081" DEBUG: (server) TUNNEL url: "localhost:8081" DEBUG: (server) TUNNEL url: "localhost:8081" DEBUG: (cache) Cleaning up the expired caches... cacheStorageId: "provider/find" DEBUG: (cache) 19292984 did not hit. Storing the execution result... logKey: 19292984 cacheStorageId: "provider/find" DEBUG: (request) Start requesting https://music.163.com/api/song/detail?ids=[19292984] DEBUG: (provider/match) Getting the audio... source: "pyncmd" info: { "name": "Love Story", "id": 19292984, "alias": [], "duration": 236266, "album": { "name": "Fearless", "id": 1770438 }, "artists": [ { "name": "Taylor Swift", "id": 44266 } ], "keyword": "Love Story - Taylor Swift" } DEBUG: (cache) Cleaning up the expired caches... cacheStorageId: "provider/pyncmd" DEBUG: (cache) Something did not hit. Storing the execution result... logKey: "Something" cacheStorageId: "provider/pyncmd" DEBUG: (request) Start requesting https://api.tunefree.fun/ncm/song/?id=19292984&level=hires DEBUG: (server) TUNNEL url: "d3.music.126.net:443" DEBUG: (request) Redirect to https://csm.sayqz.com/api/?type=apiSongUrlV1&id=19292984&level=hires DEBUG: (request) Start requesting https://csm.sayqz.com/api/?type=apiSongUrlV1&id=19292984&level=hires ERROR: (provider/match) Unexpected end of JSON input SyntaxError: Unexpected end of JSON input at parse () at JSON.parse (C:\snapshot\server\precompiled\app.js) at C:\snapshot\server\precompiled\app.js at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async u.cache (C:\snapshot\server\precompiled\app.js) at async m (C:\snapshot\server\precompiled\app.js) at async b (C:\snapshot\server\precompiled\app.js) at async Promise.all (index 0) DEBUG: (provider/match) Getting the audio... source: "kuwo" info: { "name": "Love Story", "id": 19292984, "alias": [], "duration": 236266, "album": { "name": "Fearless", "id": 1770438 }, "artists": [ { "name": "Taylor Swift", "id": 44266 } ], "keyword": "Love Story - Taylor Swift" } DEBUG: (cache) Cleaning up the expired caches... cacheStorageId: "provider/kuwo" DEBUG: (cache) Something did not hit. Storing the execution result... logKey: "Something" cacheStorageId: "provider/kuwo" DEBUG: (request) Start requesting http://search.kuwo.cn/r.s?&correct=1&stype=comprehensive&encoding=utf8&rformat=json&mobi=1&show_copyright_off=1&searchapi=6&all=Love%20Story%20Taylor%20Swift DEBUG: (request) Start requesting http://mobi.kuwo.cn/mobi.s?f=kuwo&q=NI8S5evAnmHH4UXcuKKslDk4RFzONrTj1DNPSSYKrOLCiSrScep7CUOU9RpDmtLJ6VGbBO7Ii56Tz66kUMw34wBcRiVFLw+xbYzjB825gKLOgvASvMRCqhoczM74hvkfhLXOF/0AF8tmcH2FYoAHKw== DEBUG: (provider/match) Getting the audio... source: "migu" info: { "name": "Love Story", "id": 19292984, "alias": [], "duration": 236266, "album": { "name": "Fearless", "id": 1770438 }, "artists": [ { "name": "Taylor Swift", "id": 44266 } ], "keyword": "Love Story - Taylor Swift" } DEBUG: (cache) Cleaning up the expired caches... cacheStorageId: "provider/migu" DEBUG: (cache) Something did not hit. Storing the execution result... logKey: "Something" cacheStorageId: "provider/migu" DEBUG: (request) Start requesting https://m.music.migu.cn/migu/remoting/scr_search_tag?keyword=Love%20Story%20-%20Taylor%20Swift&type=2&rows=20&pgc=1 DEBUG: (request) Start requesting https://app.c.nf.migu.cn/MIGUM2.0/strategy/listen-url/v2.4?netType=01&resourceType=2&songId=1138235260&toneFlag=ZQ24 DEBUG: (request) Start requesting https://app.c.nf.migu.cn/MIGUM2.0/strategy/listen-url/v2.4?netType=01&resourceType=2&songId=1138235260&toneFlag=SQ DEBUG: (request) Start requesting https://app.c.nf.migu.cn/MIGUM2.0/strategy/listen-url/v2.4?netType=01&resourceType=2&songId=1138235260&toneFlag=HQ DEBUG: (request) Start requesting https://app.c.nf.migu.cn/MIGUM2.0/strategy/listen-url/v2.4?netType=01&resourceType=2&songId=1138235260&toneFlag=PQ DEBUG: (provider/match) Getting the audio... source: "kugou" info: { "name": "Love Story", "id": 19292984, "alias": [], "duration": 236266, "album": { "name": "Fearless", "id": 1770438 }, "artists": [ { "name": "Taylor Swift", "id": 44266 } ], "keyword": "Love Story - Taylor Swift" } DEBUG: (cache) Cleaning up the expired caches... cacheStorageId: "provider/kugou" DEBUG: (cache) Something did not hit. Storing the execution result... logKey: "Something" cacheStorageId: "provider/kugou" DEBUG: (request) Start requesting http://mobilecdn.kugou.com/api/v3/search/song?keyword=Love%20Story%20-%20Taylor%20Swift&page=1&pagesize=10 DEBUG: (request) Start requesting http://trackercdn.kugou.com/i/v2/?key=3816966f12d285f92c559d2816706b34&hash=f62a72a156e26e5b30b703dd18d7888c&appid=1005&pid=2&cmd=25&behavior=play&album_id=13721135 DEBUG: (request) Start requesting http://trackercdn.kugou.com/i/v2/?key=b3a09477ffc7c832c24f014139886e3d&hash=ac251544423473c2888b191f832144e7&appid=1005&pid=2&cmd=25&behavior=play&album_id=13721135 DEBUG: (request) Start requesting http://trackercdn.kugou.com/i/v2/?key=53bc73bc16e9c2f1838103e230b321d8&hash=193b72d4456a4cc02a3de7c673fc4e23&appid=1005&pid=2&cmd=25&behavior=play&album_id=13721135 DEBUG: (provider/match) Getting the audio... source: "bilibili" info: { "name": "Love Story", "id": 19292984, "alias": [], "duration": 236266, "album": { "name": "Fearless", "id": 1770438 }, "artists": [ { "name": "Taylor Swift", "id": 44266 } ], "keyword": "Love Story - Taylor Swift" } DEBUG: (cache) Cleaning up the expired caches... cacheStorageId: "provider/bilibili" DEBUG: (cache) Something did not hit. Storing the execution result... logKey: "Something" cacheStorageId: "provider/bilibili" DEBUG: (request) Start requesting https://api.bilibili.com/audio/music-service-c/s?search_type=music&page=1&pagesize=30&keyword=Love%20Story%20-%20Taylor%20Swift DEBUG: (request) Start requesting https://www.bilibili.com/audio/music-service-c/web/url?rivilege=2&quality=2&sid=971864 DEBUG: (request) Start requesting http://upos-sz-mirrorcos.bilivideo.com/ugaxcode/m190718ws1ausz1dvie5qz3396bdjyx3-192k.m4a?e=ig8euxZM2rNcNbdlhoNvNC8BqJIzNbfqXBvEqxTEto8BTrNvN0GvT90W5JZMkX_YN0MvXg8gNEV4NC8xNEV4N03eN0B5tZlqNxTEto8BTrNvNeZVuJ10Kj_g2UB02J0mN0B5tZlqNCNEto8BTrNvNC7MTX502C8f2jmMQJ6mqF2fka1mqx6gqj0eN0B599M=&uipk=5&nbs=1&deadline=1708308185&gen=playurlv2&os=cosbv&oi=3361518763&trid=42d45f85609840c3a90f7145c1cf6302B&mid=0&platform=pc&upsig=d46103eb19765500e7ab94fb8627cb8f&uparams=e,uipk,nbs,deadline,gen,os,oi,trid,mid,platform&bvc=vod&nettype=0&orderid=0,1&logo=00000000 DEBUG: (provider/match) The matched song is: size: 5713475 br: 192000 url: "http://upos-sz-mirrorcos.bilivideo.com/ugaxcode/m190718ws1ausz1dvie5qz3396bdjyx3-192k.m4a?e=ig8euxZM2rNcNbdlhoNvNC8BqJIzNbfqXBvEqxTEto8BTrNvN0GvT90W5JZMkX_YN0MvXg8gNEV4NC8xNEV4N03eN0B5tZlqNxTEto8BTrNvNeZVuJ10Kj_g2UB02J0mN0B5tZlqNCNEto8BTrNvNC7MTX502C8f2jmMQJ6mqF2fka1mqx6gqj0eN0B599M=&uipk=5&nbs=1&deadline=1708308185&gen=playurlv2&os=cosbv&oi=3361518763&trid=42d45f85609840c3a90f7145c1cf6302B&mid=0&platform=pc&upsig=d46103eb19765500e7ab94fb8627cb8f&uparams=e,uipk,nbs,deadline,gen,os,oi,trid,mid,platform&bvc=vod&nettype=0&orderid=0,1&logo=00000000" md5: null DEBUG: (provider/match) The audio matched! source: "bilibili" info: { "name": "Love Story", "id": 19292984, "alias": [], "duration": 236266, "album": { "name": "Fearless", "id": 1770438 }, "artists": [ { "name": "Taylor Swift", "id": 44266 } ], "keyword": "Love Story - Taylor Swift" } DEBUG: (provider/match) The data to replace: audioInfo: { "name": "Love Story", "id": 19292984, "alias": [], "duration": 236266, "album": { "name": "Fearless", "id": 1770438 }, "artists": [ { "name": "Taylor Swift", "id": 44266 } ], "keyword": "Love Story - Taylor Swift" } audioData: { "size": 5713475, "br": 192000, "url": "http://upos-sz-mirrorcos.bilivideo.com/ugaxcode/m190718ws1ausz1dvie5qz3396bdjyx3-192k.m4a?e=ig8euxZM2rNcNbdlhoNvNC8BqJIzNbfqXBvEqxTEto8BTrNvN0GvT90W5JZMkX_YN0MvXg8gNEV4NC8xNEV4N03eN0B5tZlqNxTEto8BTrNvNeZVuJ10Kj_g2UB02J0mN0B5tZlqNCNEto8BTrNvNC7MTX502C8f2jmMQJ6mqF2fka1mqx6gqj0eN0B599M=&uipk=5&nbs=1&deadline=1708308185&gen=playurlv2&os=cosbv&oi=3361518763&trid=42d45f85609840c3a90f7145c1cf6302B&mid=0&platform=pc&upsig=d46103eb19765500e7ab94fb8627cb8f&uparams=e,uipk,nbs,deadline,gen,os,oi,trid,mid,platform&bvc=vod&nettype=0&orderid=0,1&logo=00000000", "md5": null, "source": "bilibili" } INFO: (provider/match) Replaced: [19292984] Love Story audioId: 19292984 songName: "Love Story" url: "http://upos-sz-mirrorcos.bilivideo.com/ugaxcode/m190718ws1ausz1dvie5qz3396bdjyx3-192k.m4a?e=ig8euxZM2rNcNbdlhoNvNC8BqJIzNbfqXBvEqxTEto8BTrNvN0GvT90W5JZMkX_YN0MvXg8gNEV4NC8xNEV4N03eN0B5tZlqNxTEto8BTrNvNeZVuJ10Kj_g2UB02J0mN0B5tZlqNCNEto8BTrNvNC7MTX502C8f2jmMQJ6mqF2fka1mqx6gqj0eN0B599M=&uipk=5&nbs=1&deadline=1708308185&gen=playurlv2&os=cosbv&oi=3361518763&trid=42d45f85609840c3a90f7145c1cf6302B&mid=0&platform=pc&upsig=d46103eb19765500e7ab94fb8627cb8f&uparams=e,uipk,nbs,deadline,gen,os,oi,trid,mid,platform&bvc=vod&nettype=0&orderid=0,1&logo=00000000" DEBUG: (server) TUNNEL url: "localhost:8081" DEBUG: (server) TUNNEL url: "localhost:8081"

网易云音乐歌曲链接

No response

网易云音乐版本号

2.10.12

操作系统

windows and android

其他信息

imagen

imagen

问题排查

mario6714 commented 9 months ago

The problem in "Bug in pyncmd" still there

Edit: forget, i think the problem maybe is the source