|
|
@ -19,7 +19,6 @@ |
|
|
|
|
|
|
|
|
|
|
|
package org.airsonic.player.service; |
|
|
|
package org.airsonic.player.service; |
|
|
|
|
|
|
|
|
|
|
|
import com.google.common.base.Function; |
|
|
|
|
|
|
|
import com.google.common.base.Predicates; |
|
|
|
import com.google.common.base.Predicates; |
|
|
|
import com.google.common.collect.FluentIterable; |
|
|
|
import com.google.common.collect.FluentIterable; |
|
|
|
import com.google.common.collect.Lists; |
|
|
|
import com.google.common.collect.Lists; |
|
|
@ -364,12 +363,7 @@ public class LastFmService { |
|
|
|
|
|
|
|
|
|
|
|
Collection<Album> matches = Album.search(query.toString(), LAST_FM_KEY); |
|
|
|
Collection<Album> matches = Album.search(query.toString(), LAST_FM_KEY); |
|
|
|
return FluentIterable.from(matches) |
|
|
|
return FluentIterable.from(matches) |
|
|
|
.transform(new Function<Album, LastFmCoverArt>() { |
|
|
|
.transform(album1 -> convert(album1)) |
|
|
|
@Override |
|
|
|
|
|
|
|
public LastFmCoverArt apply(Album album) { |
|
|
|
|
|
|
|
return convert(album); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
.filter(Predicates.notNull()) |
|
|
|
.filter(Predicates.notNull()) |
|
|
|
.toList(); |
|
|
|
.toList(); |
|
|
|
} catch (Throwable x) { |
|
|
|
} catch (Throwable x) { |
|
|
|