Song _song = new Song();
_song.setId("bc94ef2b-7d16-3815-b1cb-63fbef75b87c");
api.downloadSong(_song);
Playlists playlists = api.getAllPlaylists();
if (playlists.getMagicPlaylists() != null)
{
for (Playlist list : playlists.getMagicPlaylists())
{
System.out.println("--- " + list.getTitle() + " "
+ list.getPlaylistId() + " ---");
for (Song song : list.getPlaylist())
{
System.out.println(song.getName() + " "
+ song.getArtist());
}
}
}
Collection<Song> tracks = api.getAllSongs();
for (Song track : tracks)
{
if (track.getAlbumArtUrl() != null)
{
File track_f = api.downloadSong(track);
populateFileWithTuneTags(track_f, track);
break;
}
}
for (Playlist list : playlists.getPlaylists())
{
System.out.println("--- " + list.getTitle() + " "
+ list.getPlaylistId() + " ---");
for (Song song : list.getPlaylist())
{