caught not checking for album

This commit is contained in:
aj 2019-05-10 19:38:12 +01:00
parent 3bc0cdcc63
commit 64029f1d6f

View File

@ -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;
} }