Coder Social home page Coder Social logo

Comments (9)

TooCloseToMadness avatar TooCloseToMadness commented on June 28, 2024 2

是的,我点开这三个链接的结果和你一样。这首vacation我可以搜到但是无法播放

from beslyric-for-x.

pzhlkj6612 avatar pzhlkj6612 commented on June 28, 2024 1

应该是最新版本了

3.2.0 是最新版本。

是的,在国外

明白了,这是一个已知问题。我们使用的查找歌曲的接口可能限定了来访者的 IP 范围,因此你可能必须要给 BesLyric-for-X 挂一个回国的梯子。

from beslyric-for-x.

TooCloseToMadness avatar TooCloseToMadness commented on June 28, 2024 1

( ͡° ͜ʖ ͡°)✧ 好的捏

from beslyric-for-x.

pzhlkj6612 avatar pzhlkj6612 commented on June 28, 2024

你好。请问:

  • 你所使用的 BesLyric-for-X 的版本是多少?点右上角齿轮再拉到下边就能看到。
  • 你身在国外吗?

from beslyric-for-x.

TooCloseToMadness avatar TooCloseToMadness commented on June 28, 2024

image
应该是最新版本了
是的,在国外

from beslyric-for-x.

TooCloseToMadness avatar TooCloseToMadness commented on June 28, 2024

好的

from beslyric-for-x.

pzhlkj6612 avatar pzhlkj6612 commented on June 28, 2024

另外,请不要关闭这个议题( issue ),因为挂梯子没有从根本上解决这个问题。

from beslyric-for-x.

BensonLaur avatar BensonLaur commented on June 28, 2024

这边开了VPN后,在网易云客户端,或者网页,都可以访问一些歌曲,比如这首 Vacation。 然而在 BesLyric 中,我开 VPN 后就搜索不到了

现在其实我还不清楚具体原因,不知道是现在软件中使用的网易云接口会检测地区,还是会检测VPN,还是其实都没限制只是软件中没有使用恰当的接口去请求数据。


获取歌词先是查询歌词列表,使用网易云接口访问方式如下:

queryData.append("csrf_token=&s="+encodedArtist+"+"+ encodedSong +"&type=1&offset=0&total=True&limit=20");
QString strRes;
if(!NetworkAccess::SyncDownloadStringPost( "https://music.163.com/api/search/get/web",strRes,queryData))

比如:https://music.163.com/api/search/get/web?csrf_token=&s=Vacation+Damon&type=1&offset=0&total=True&limit=20

从列表中获取歌词 id,后继续查询具体歌词,使用网易云接口访问方式如下:

QUrlQuery query;
query.addQueryItem("os", "osx");
query.addQueryItem("id", QString::number(iter->nID));
query.addQueryItem("lv", "-1");
query.addQueryItem("kv", "-1");
query.addQueryItem("tv", "-1");
//获取id对应的歌词
if(!NetworkAccess::SyncDownloadString("http://music.163.com/api/song/lyric", strLyricJson,query))

比如:http://music.163.com/api/song/lyric?os=osx&lv=-1&kv=-1&tv=-1&id=436514415


@TooCloseToMadness 你可以访问一下这些链接吗,在你那边网页是否可以正常访问呢
歌曲 Vacation:https://music.163.com/#/song?id=436514415
歌词搜索: https://music.163.com/api/search/get/web?csrf_token=&s=Vacation+Damon&type=1&offset=0&total=True&limit=20
歌词查询:http://music.163.com/api/song/lyric?os=osx&lv=-1&kv=-1&tv=-1&id=436514415

另外,同样是这首歌(搜索 Vacation Damon Empero),能否在网易云客户端正常搜索并播放呢?

from beslyric-for-x.

BensonLaur avatar BensonLaur commented on June 28, 2024

噢,有新发现,上面三个链接,我开了 VPN 后,第一个(歌曲 Vacation)和 第三个(歌词查询)可以正常查到结果,而第二个(歌词搜索)返回的似乎是加密过的, 返回结果如下:

{
"result":"35b1748964af8a7c1d883......8e67cb",
"code":200,
"abroad":true
}

from beslyric-for-x.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.