* faccio una ricerca su youtube (per Copyright legati al Country)
*/
@Override
public synchronized SongDTO getSongDTO(SongSummaryDTO song_summary_dto) {
Song song = Song.loadFromDTO(song_summary_dto);
SongDTO song_dto = null;
if (song != null) {
song_dto = song.toSongDTO();
} else {
return new SongDTO();
}
String ip = getThreadLocalRequest().getRemoteAddr();
if (ip.equals("127.0.0.1"))
ip = "";
song_dto.setAlbumCover(Album.getAlbumCoverLastFm(song_dto.getAlbum(),
song_dto.getArtist()));
song_dto.setYoutubeCode(Utils.getYouTubeCode(song.getTitle() + " "
+ song.getArtist(), ip));
return song_dto;
}