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?

有帮助吗?

解决方案

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

其他提示

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; }
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top