如何为spotify应用程序获取专辑类型

How to get genre of the album for spotify app

本文关键字:获取 专辑 类型 应用程序 spotify      更新时间:2023-09-26

我想检索Spotify当前播放的曲目/专辑的类型。

我看过Last.FM从专辑或曲目中获得的流派,但似乎没有选择。

有人能帮我通过网络服务找到这一类型吗?

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

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; }