質問

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