Search in sources :

Example 1 with ArtistBio

use of org.libresonic.player.domain.ArtistBio in project libresonic by Libresonic.

the class MultiService method getArtistInfo.

public ArtistInfo getArtistInfo(int mediaFileId, int maxSimilarArtists, int maxTopSongs) {
    MediaFile mediaFile = mediaFileService.getMediaFile(mediaFileId);
    List<SimilarArtist> similarArtists = getSimilarArtists(mediaFileId, maxSimilarArtists);
    ArtistBio artistBio = lastFmService.getArtistBio(mediaFile);
    List<TopSong> topSongs = getTopSongs(mediaFile, maxTopSongs);
    return new ArtistInfo(similarArtists, artistBio, topSongs);
}
Also used : MediaFile(org.libresonic.player.domain.MediaFile) ArtistBio(org.libresonic.player.domain.ArtistBio)

Aggregations

ArtistBio (org.libresonic.player.domain.ArtistBio)1 MediaFile (org.libresonic.player.domain.MediaFile)1