Search in sources :

Example 1 with PlaylistContainer

use of org.fourthline.cling.support.model.container.PlaylistContainer in project libresonic by Libresonic.

the class FolderBasedContentDirectory method createPlaylistContainer.

private Container createPlaylistContainer(Playlist playlist) {
    PlaylistContainer container = new PlaylistContainer();
    container.setId(CONTAINER_ID_PLAYLIST_PREFIX + playlist.getId());
    container.setParentID(CONTAINER_ID_PLAYLIST_ROOT);
    container.setTitle(playlist.getName());
    container.setDescription(playlist.getComment());
    container.setChildCount(playlistService.getFilesInPlaylist(playlist.getId()).size());
    return container;
}
Also used : PlaylistContainer(org.fourthline.cling.support.model.container.PlaylistContainer)

Aggregations

PlaylistContainer (org.fourthline.cling.support.model.container.PlaylistContainer)1