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

HK服务器部署后无法获取任何歌曲! #21

Closed
piwawa opened this issue Jan 10, 2024 · 12 comments
Closed

HK服务器部署后无法获取任何歌曲! #21

piwawa opened this issue Jan 10, 2024 · 12 comments

Comments

@piwawa
Copy link

piwawa commented Jan 10, 2024

 python main.py
2024-01-10 09:19:32|[qdes/WARNING]|QRC解密库qdes加载失败, 可能为不支持当前系统, QRC相关的逐字 歌词获取将无法使用
2024-01-10 09:19:32|[http_utils/INFO]|-----start----- https://mips.kugou.com/check/iscn?&format=json
2024-01-10 09:19:32|[scheduler/INFO]|task update_script run start
2024-01-10 09:19:32|[http_utils/INFO]|-----start----- https://cdn.jsdelivr.net/gh/lxmusics/lx-music-api-server@main/lx-music-source-example.js
2024-01-10 09:19:32|[main/INFO]|监听 -> http://0.0.0.0:9763
2024-01-10 09:19:32|[main/INFO]|服务器启动成功,请按下Ctrl + C停止
2024-01-10 09:19:32|[lx_script/INFO]|更新源脚本成功
2024-01-10 09:19:32|[scheduler/INFO]|task update_script run success, next execute: 2024-01-11 09:19:32
2024-01-10 09:19:33|[http_utils/INFO]|您在非中国大陆服务器(中国香港)上启动了项目,已自动开启ip伪装
2024-01-10 09:19:33|[http_utils/WARNING]|此方式无法解决咪咕音乐的链接获取问题,您可以配置代理 ,服务器地址可在下方链接中找到
https://hidemy.io/cn/proxy-list/?country=CN#list
2024-01-10 09:19:45|[aiohttp_web/INFO]|18.183.204.2 - GET "/", 200
2024-01-10 09:19:55|[aiohttp_web/INFO]|18.183.204.2 - GET "/script", 200
2024-01-10 09:24:31|[http_utils/INFO]|-----start----- https://u.y.qq.com/cgi-bin/musics.fcg?format=json&sign=zzb9ff9279bwpalo2yn17y4ehcdawtwb4bdcf7d
2024-01-10 09:24:31|[http_utils/INFO]|-----start----- https://u.y.qq.com/cgi-bin/musics.fcg?format=json&sign=zzbf2aeb598tdx0xempfaobkeagkanjgda110814
2024-01-10 09:24:31|[api_handler/INFO]|获取tx_004aJoYT3ia7al_128k失败,原因:failed
2024-01-10 09:24:31|[aiohttp_web/INFO]|58.221.240.57 - GET "/url/tx/004aJoYT3ia7al/128k", 200
2024-01-10 09:24:32|[http_utils/INFO]|-----start----- https://bd-api.kuwo.cn/api/service/music/downloadInfo/1108461?isMv=0&format=mp3&br=128kmp3
2024-01-10 09:24:35|[api_handler/INFO]|获取kw_1108461_128k失败,原因:failed
2024-01-10 09:24:35|[aiohttp_web/INFO]|58.221.240.57 - GET "/url/kw/1108461/128k", 200
2024-01-10 09:24:35|[http_utils/INFO]|-----start----- http://gateway.kugou.com/v3/album_audio/audio
2024-01-10 09:24:36|[http_utils/INFO]|-----start----- https://gateway.kugou.com/v5/url?album_id=978874&userid=0&area_code=1&hash=326cbb23baa90062047512376aa406a4&module=&mid=114514&appid=1005&ssa_flag=is_fromtrack&clientver=12029&open_time=20240110&vipType=6&ptype=0&token=&auth=&mtype=0&album_audio_id=32208363&behavior=play&clienttime=1704878676&pid=2&key=becb45f45ce1050277ee402b5327e980&dfid=-&pidversion=3001&quality=128&signature=6947f96f4a6f7fe0b8a732a10a30a2de
2024-01-10 09:24:37|[api_handler/INFO]|获取kg_326cbb23baa90062047512376aa406a4_128k失败,原因 :链接获取失败,请检查账号是否有会员
或数字专辑是否购买
2024-01-10 09:24:37|[aiohttp_web/INFO]|58.221.240.57 - GET "/url/kg/326cbb23baa90062047512376aa406a4/128k", 200
2024-01-10 09:24:37|[http_utils/INFO]|-----start----- https://interface.music.163.com/eapi/song/enhance/player/url/v1
2024-01-10 09:24:37|[api_handler/INFO]|获取wy_208891_128k失败,原因:failed
2024-01-10 09:24:37|[aiohttp_web/INFO]|58.221.240.57 - GET "/url/wy/208891/128k", 200
2024-01-10 09:24:39|[http_utils/INFO]|-----start----- https://app.c.nf.migu.cn/MIGUM2.0/strategy/listen-url/v2.4?toneFlag=PQ&songId=60057771645&resourceType=2
2024-01-10 09:24:39|[api_handler/INFO]|获取mg_60057771645_128k失败,原因:failed
2024-01-10 09:24:39|[aiohttp_web/INFO]|58.221.240.57 - GET "/url/mg/60057771645/128k", 200
2024-01-10 09:24:39|[http_utils/INFO]|-----start----- https://u.y.qq.com/cgi-bin/musics.fcg?format=json&sign=zzbf2aeb598tdx0xempfaobkeagkanjgda110814
2024-01-10 09:24:39|[api_handler/INFO]|获取tx_004aJoYT3ia7al_128k失败,原因:failed
2024-01-10 09:24:43|[api_handler/INFO]|获取mg_60057771645_128k失败,原因:failed
2024-01-10 09:24:43|[aiohttp_web/INFO]|58.221.240.57 - GET "/url/mg/60057771645/128k", 200
2024-01-10 09:24:51|[http_utils/INFO]|-----start----- https://u.y.qq.com/cgi-bin/musics.fcg?format=json&sign=zzb1189d574lazj6stdqnjfwafknjvrg10b81eac
2024-01-10 09:24:51|[http_utils/INFO]|-----start----- https://u.y.qq.com/cgi-bin/musics.fcg?format=json&sign=zzb2973bb14n6pabeselzgtw0ysnn46qg1de83822
2024-01-10 09:24:51|[api_handler/INFO]|获取tx_004LNGvj1DSZG9_128k失败,原因:failed
2024-01-10 09:24:51|[aiohttp_web/INFO]|58.221.240.57 - GET "/url/tx/004LNGvj1DSZG9/128k", 200
2024-01-10 09:24:53|[http_utils/INFO]|-----start----- https://u.y.qq.com/cgi-bin/musics.fcg?format=json&sign=zzb2973bb14n6pabeselzgtw0ysnn46qg1de83822
2024-01-10 09:24:53|[api_handler/INFO]|获取tx_004LNGvj1DSZG9_128k失败,原因:failed
2024-01-10 09:24:53|[aiohttp_web/INFO]|58.221.240.57 - GET "/url/tx/004LNGvj1DSZG9/128k", 200
2024-01-10 09:25:12|[http_utils/INFO]|-----start----- https://bd-api.kuwo.cn/api/service/music/downloadInfo/1108461?isMv=0&format=mp3&br=320kmp3
2024-01-10 09:25:18|[api_handler/INFO]|获取kw_1108461_320k失败,原因:failed
2024-01-10 09:25:18|[aiohttp_web/INFO]|58.221.240.57 - GET "/url/kw/1108461/320k", 200
2024-01-10 09:25:20|[http_utils/INFO]|-----start----- https://gateway.kugou.com/v5/url?album_id=978874&userid=0&area_code=1&hash=8912683b12ef9cf1dd2278c4263f9d31&module=&mid=114514&appid=1005&ssa_flag=is_fromtrack&clientver=12029&open_time=20240110&vipType=6&ptype=0&token=&auth=&mtype=0&album_audio_id=32208363&behavior=play&clienttime=1704878720&pid=2&key=2a9c1243e4e37baee0f016975882510f&dfid=-&pidversion=3001&quality=320&signature=385da9c897d5a80f3e3b3cd6562bc2f4
2024-01-10 09:25:21|[api_handler/INFO]|获取kg_326cbb23baa90062047512376aa406a4_320k失败,原因 :链接获取失败,请检查账号是否有会员或数字专辑是否购买
2024-01-10 09:25:21|[aiohttp_web/INFO]|58.221.240.57 - GET "/url/kg/326cbb23baa90062047512376aa406a4/320k", 200
2024-01-10 09:25:21|[http_utils/INFO]|-----start----- https://u.y.qq.com/cgi-bin/musics.fcg?format=json&sign=zzbe62f46a0q38xogctszus5auwruqdg9f25f286
2024-01-10 09:25:21|[api_handler/INFO]|获取tx_004aJoYT3ia7al_320k失败,原因:failed
2024-01-10 09:25:21|[aiohttp_web/INFO]|58.221.240.57 - GET "/url/tx/004aJoYT3ia7al/320k", 200
2024-01-10 09:25:24|[http_utils/INFO]|-----start----- https://interface.music.163.com/eapi/song/enhance/player/url/v1
2024-01-10 09:25:24|[api_handler/INFO]|获取wy_208891_320k失败,原因:failed
2024-01-10 09:25:24|[aiohttp_web/INFO]|58.221.240.57 - GET "/url/wy/208891/320k", 200
2024-01-10 09:25:24|[http_utils/INFO]|-----start----- https://app.c.nf.migu.cn/MIGUM2.0/strategy/listen-url/v2.4?toneFlag=HQ&songId=60057771645&resourceType=2
2024-01-10 09:25:25|[api_handler/INFO]|获取mg_60057771645_320k失败,原因:failed
2024-01-10 09:25:25|[aiohttp_web/INFO]|58.221.240.57 - GET "/url/mg/60057771645/320k", 200
2024-01-10 09:25:25|[http_utils/INFO]|-----start----- https://bd-api.kuwo.cn/api/service/music/downloadInfo/1108461?isMv=0&format=mp3&br=320kmp3
2024-01-10 09:25:27|[api_handler/INFO]|获取kw_1108461_320k失败,原因:failed
2024-01-10 09:25:27|[aiohttp_web/INFO]|58.221.240.57 - GET "/url/kw/1108461/320k", 200
2024-01-10 09:25:28|[http_utils/INFO]|-----start----- https://gateway.kugou.com/v5/url?album_id=978874&userid=0&area_code=1&hash=8912683b12ef9cf1dd2278c4263f9d31&module=&mid=114514&appid=1005&ssa_flag=is_fromtrack&clientver=12029&open_time=20240110&vipType=6&ptype=0&token=&auth=&mtype=0&album_audio_id=32208363&behavior=play&clienttime=1704878728&pid=2&key=2a9c1243e4e37baee0f016975882510f&dfid=-&pidversion=3001&quality=320&signature=3195d5802244eb8d53701efb1e7c5aea
2024-01-10 09:25:28|[api_handler/INFO]|获取kg_326cbb23baa90062047512376aa406a4_320k失败,原因 :链接获取失败,请检查账号是否有会员或数字专辑是否购买

挺无语,整半天结果一首歌都听不到,还不如六音音源

@esme518
Copy link

esme518 commented Jan 11, 2024

我也有同样的问题 海外的服务器 加了国内的代理服务器 开始时候的[您在非中国大陆服务器...]不见了 但还是出现获取失败
不知道是不是程序有没有好好的走代理 用的是v2.0.0-beta.3 weekly release

@ikun0014
Copy link
Collaborator

@esme518 尝试 clone 部署,仍未解决等今天主开发回来

@esme518
Copy link

esme518 commented Jan 12, 2024

@ikun0014 看了下aiohttp的文档 貌似默认不从环境变量中提取代理设置
Contrary to the requests library, it won’t read environment variables by default. But you can do so by passing trust_env=True into [aiohttp.ClientSession](https://docs.aiohttp.org/en/stable/client_reference.html#aiohttp.ClientSession) constructor
https://docs.aiohttp.org/en/stable/client_advanced.html
而且实话说 比起设置环境变量然后全局都走代理的话 只对需要的请求走代理会更方便一点

@helloplhm-qwq
Copy link
Collaborator

@esme518 等一等哈,我刚刚放学,回去再看

@helloplhm-qwq
Copy link
Collaborator

试试 5fb8913 的版本是否修复

@esme518
Copy link

esme518 commented Jan 13, 2024

试试 5fb8913 的版本是否修复

Proxy没问题了

@helloplhm-qwq
Copy link
Collaborator

还有,kw的api也加验证了

@helloplhm-qwq
Copy link
Collaborator

有可能题主放的歌是一首会员歌,都要验证了,所以也没办法拿了

@helloplhm-qwq
Copy link
Collaborator

helloplhm-qwq commented Jan 13, 2024

因为酷我的程序员写的代码比较...,所以到现在为止还有巨量的api可以去获取会员的歌曲,所以我的想法是自己去配置kuwodes的接口,为什么不写好,主要是我怕出意外,像lx一样,而项目内置的我就打算保持这样,然后支持酷我音乐的配置账号

@etanman
Copy link

etanman commented Jan 15, 2024

我本地搭建也是一样,用不了了

@Tfy2020
Copy link

Tfy2020 commented Jan 17, 2024

因为酷我的程序员写的代码比较...,所以到现在为止还有巨量的api可以去获取会员的歌曲,所以我的想法是自己去配置kuwodes的接口,为什么不写好,主要是我怕出意外,像lx一样,而项目内置的我就打算保持这样,然后支持酷我音乐的配置账号

作者怎么写这玩意?能否讲一下具体原理?
到时候我也想自己搞一个。

@helloplhm-qwq
Copy link
Collaborator

我本地搭建也是一样,用不了了

需要配置会员了,为了防止项目被那啥,酷我支持用配置文件,不需要会员

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

6 participants