Quantcast
Channel: The Echo Nest Developer Forum
Viewing all articles
Browse latest Browse all 1582

foreign ids on tracks (jEN)

$
0
0

Hi Paul,

Sorry. I was changing the code back and forth with several ids to see if it was an id space related problem. Just now I found out I was using a maven dependency that referenced an old version of the library. I guess that was the problem.

I couldn't find the new version available in the maven repo, but I manually updated to the latest one and problem solved.

Thanks

    PlaylistParams params = new PlaylistParams();
    params.addIDSpace("id:spotify-WW");
    params.addArtist("spice girls");
    params.addArtist("green day");
    params.includeTracks();
    params.setLimit(true);

    Playlist playlist = en.createStaticPlaylist(params);

    for (Song song : playlist.getSongs()) {
        Track track = song.getTrack("spotify-WW");
        System.out.println(track.getForeignID() + "" + song.getTitle() + " by " + song.getArtistName());
    }
}

Viewing all articles
Browse latest Browse all 1582

Trending Articles