如何获取 Spotify 应用程序专辑的流派

发布于 2025-01-06 18:53:13 字数 111 浏览 3 评论 0原文

我想检索当前在 Spotify 中播放的曲目/专辑的流派。

我已经查看了 Last.FM 以从专辑或曲目中获取流派,但似乎没有选择。

请问有人可以帮我通过网络服务找到该类型吗?

I would like to retrieve the genre of the track/ album being currently played in Spotify.

I've looked at Last.FM for getting the genre from the album or from the track but it seems there is no option.

Please can someone help me to find the genre via a web service?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

口干舌燥 2025-01-13 18:53:13

我建议使用 Echo Nest API,因为 Last.fm 仅使用用户输入的标签,这并不总是有帮助。

I would reccomend using Echo Nest API as Last.fm only uses user inputted tags, which aren't always helpful.

眼趣 2025-01-13 18:53:13

您在 MusicStore 项目中遇到这个问题吗?如果这样做,请打开 Album.cs,找到此:

public Genre Genre { get; set; }
public Artist Artist { get; set; }

并添加一个虚拟属性,例如:

public virtual Genre Genre { get; set; }
public virtual Artist Artist { get; set; }

Do you get this problem in the MusicStore Project? If you do, open Album.cs, find this :

public Genre Genre { get; set; }
public Artist Artist { get; set; }

and add a virtual attribute like:

public virtual Genre Genre { get; set; }
public virtual Artist Artist { get; set; }
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文