System.out.println("Ricerca info: " + info);
Collection<Track> search = Track.search(info,
"33d9ef520018d87db5dff9ef74cc4904");
Iterator<Track> it = search.iterator();
Track t;
if (it.hasNext())
t = it.next();
else
t = null;
if (t == null)
return null;
else {
SongDTO song = new SongDTO();
song.setTitle(t.getName());
song.setArtist(t.getArtist());
if (t.getAlbum() != null)
song.setAlbum(t.getAlbum());
song.setAlbumCover(t.getImageURL(ImageSize.EXTRALARGE));
return song;
}
} catch (Exception e) {
}
return null;