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