mirror of
https://github.com/imsyy/SPlayer.git
synced 2026-04-25 23:15:55 +03:00
[GH-ISSUE #45] 使用UNM-SERVER解锁的一些问题和我个人解决方案 #21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @beer-on-ice on GitHub (May 30, 2023).
Original GitHub issue: https://github.com/imsyy/SPlayer/issues/45
目前使用UNM-SERVER解锁后,如果以QQ音乐优先,匹配以后会报错500,提示匹配失败,


这里我的方案是kuwo音源优先。此时能拿到kuwo音源的歌曲,不过由于是http协议,访问资源会报错403,
这里我的方案是部署此反代项目 https://github.com/beer-on-ice/vercel_reverse_proxy,成功后得到一个反代的域名如 http://xxx.vercel.app
然后在SPlayer vercel项目变量中添加 VITE_PROXY_API = https://xxx.vercel.app/proxy/

最后将src/components/Player/index.vue中第367行替换为

player.value = createSound(res.data.url.replace(/\?bitrate/, '').replace(/http:\/\//, import.meta.env.VITE_PROXY_API));不过目前每次随作者更新代码后,再改动比较繁琐,希望作者能修复下,感谢作者项目
@imsyy commented on GitHub (May 31, 2023):
感谢大佬,我去试试
@beer-on-ice commented on GitHub (May 31, 2023):
https://github.com/beer-on-ice/vercel_reverse_proxy这个反代还是不太稳,有些歌还是403,改用部署在cloudflare worker的反代https://github.com/beer-on-ice/cfworker_reverse_proxy ,目前周董的歌都能正确播放 , 在SPlayer vercel项目变量中添加 VITE_PROXY_API = https://xxx.xxx.xxx/http/
@imsyy commented on GitHub (May 31, 2023):
ok,我去试试
@imsyy commented on GitHub (May 31, 2023):
我目前对
src\components\Player\index.vue做了一下兼容,由于感觉还是在UNM-SERVER处做一下反代处理比较好,所以你需要更新一下UNM-SERVER,把反代地址填到env环境变量就行@beer-on-ice commented on GitHub (May 31, 2023):
好的,感谢