caught not checking for album
This commit is contained in:
parent
3bc0cdcc63
commit
64029f1d6f
@ -340,10 +340,11 @@ public class FmNetwork {
|
|||||||
Logger.getLog().log(new LogEntry("refreshTrack").addArg(track.getName()).addArg(track.getArtist().getName()));
|
Logger.getLog().log(new LogEntry("refreshTrack").addArg(track.getName()).addArg(track.getArtist().getName()));
|
||||||
|
|
||||||
Artist refreshedArtist = getArtist(track.getArtist().getName());
|
Artist refreshedArtist = getArtist(track.getArtist().getName());
|
||||||
|
|
||||||
Track refreshedTrack = getTrack(track.getName(), refreshedArtist);
|
Track refreshedTrack = getTrack(track.getName(), refreshedArtist);
|
||||||
|
|
||||||
|
if (track.getAlbum() != null) {
|
||||||
refreshedTrack.setAlbum(getAlbum(track.getAlbum().getName(), refreshedArtist));
|
refreshedTrack.setAlbum(getAlbum(track.getAlbum().getName(), refreshedArtist));
|
||||||
|
}
|
||||||
|
|
||||||
return refreshedTrack;
|
return refreshedTrack;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user