문제

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