全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 4836|回复: 38

刚刚那个自建网易的套用解锁灰色【更新方法】

  [复制链接]
发表于 2020-12-18 20:09:17 | 显示全部楼层 |阅读模式
本帖最后由 lzdszdl 于 2020-12-19 14:56 编辑

原帖:https://www.hostloc.com/thread-785317-1-1.html

好像是成功了 下面这个专辑本来是不能听的



一会儿回来   发方法

https://music.malahu.org/#/album/3184340

#开始更新方法
首先要有一个解锁的host 运行的时候加上 -p 80:443 最好是另外一台鸡鸡 因为会占用 80 443端口
https://github.com/nondanee/UnblockNeteaseMusic

在api服务器增加hosts
hostip music.163.com
hostip interface.music.163.com
hostip music.126.net
hostip interface3.music.163.com

然后正常安装到yarn run build之前
修改 src/store/actions.js
注释第4行
//import { updateHttps } from "@/utils/common";
116行下面增加如下内容
unblockSongUrl = getMP3(track.id);

忘了忘了昨天烧烤吃多了
第71行const url = updateHttps(data.data[0].url);改为
const url =data.data[0].url;
如果不取消掉updatehttps 有些歌链接是http强制https会不播放

保存
运行yarn run build
然后将 /dist 目录下的文件上传到你的 Web 服务器(不限制本机),最后启动web服务

如果api服务报错SSL
修改netease_api/util/request.js 忽略ssl错误
方法:https://www.google.com.hk/search?q=nodejs%E5%BF%BD%E7%95%A5ssl%E9%94%99%E8%AF%AF
 楼主| 发表于 2020-12-18 22:29:45 | 显示全部楼层
更新方法了
发表于 2020-12-19 01:14:46 | 显示全部楼层
注释了第四行就报错诶
  1. ERROR  Failed to compile with 1 errors                                                                                                                                            1:11:16 AM

  2. error  in ./src/store/actions.js

  3. Module Error (from ./node_modules/eslint-loader/index.js):

  4. /root/YesPlayMusic/src/store/actions.js
  5.   71:25  error  'updateHttps' is not defined  no-undef

  6. ✖ 1 problem (1 error, 0 warnings)


  7. [url=home.php?mod=space&uid=175]@[/url] ./src/store/index.js 10:0-32 40:11-18
  8. @ ./src/main.js
  9. @ multi ./src/main.js

  10. ERROR  Build failed with errors.
  11. error Command failed with exit code 1.
  12. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
复制代码

点评

忘了一行 不好意思  发表于 2020-12-19 14:50
发表于 2020-12-19 08:00:21 | 显示全部楼层
坐等一个docker
 楼主| 发表于 2020-12-19 23:01:11 | 显示全部楼层
BJY678 发表于 2020-12-19 18:01
老哥,我这里默认是https协议
然而other.player.nf01.sycdn.kuwo.cn根本没配置SSL

这。。。我这里正常的不跳https
发表于 2020-12-19 21:45:04 | 显示全部楼层
ukmg 发表于 2020-12-19 20:40
https://music.malahu.org/#/playlist/359353769

测试了不可以播

http://music.tos3.cn/#/playlist/359353769

我刚搭建的,你看看行不行
发表于 2020-12-19 16:24:08 | 显示全部楼层
本帖最后由 limonada 于 2020-12-19 16:27 编辑

还是有问题,比如搜索周杰伦,然后点周杰伦的名字,页面会空白,然后NeteaseCloudMusicApi会报参数错误
而且116行下的unblockSongUrl = getMP3(track.id);  后边应该为逗号
  1. server running @ http://localhost:3000
  2. (node:2616) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
  3. (Use `node --trace-warnings ...` to show where the warning was created)
  4. [ERR] /user/playlist?timestamp=1608366296548&limit=1000 { status: 400, body: { msg: '参数错误', code: 400, message: '参数错误' } }
  5. [OK] /scrobble?id=428203719&sourceid=34841412&time=180&timestamp=1608366296663
  6. [OK] /search?keywords=周杰伦&type=1004
  7. [OK] /search?keywords=周杰伦&type=1018
  8. [ERR] /artists?id=6452&timestamp=1608366306677 {
  9.   status: 400,
  10.   body: { msg: 'Cheating', code: -460, message: 'Cheating' }
  11. }
  12. [OK] /artist/mv?id=6452
  13. [OK] /artist/album?id=6452&limit=200
复制代码

点评

呜呜呜大佬强啊  发表于 2020-12-19 17:12
发表于 2020-12-18 20:17:48 | 显示全部楼层
等大神发源码

点评

源码有,看原帖  发表于 2020-12-18 20:19
发表于 2020-12-18 20:27:17 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2020-12-18 20:55:49 | 显示全部楼层
顶一个,坐等分享
发表于 2020-12-18 20:56:49 | 显示全部楼层
楼主你好帅
发表于 2020-12-18 21:19:10 | 显示全部楼层
好像不行,周杰伦的的确不灰了,但是播放不了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-4 11:15 , Processed in 0.070748 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表