diff --git a/crabidy-core/src/lib.rs b/crabidy-core/src/lib.rs index e56d42a..bccd439 100644 --- a/crabidy-core/src/lib.rs +++ b/crabidy-core/src/lib.rs @@ -46,8 +46,12 @@ impl LibraryNode { } impl LibraryNodeChild { - pub fn new(uuid: String, title: String) -> Self { - Self { uuid, title } + pub fn new(uuid: String, title: String, is_queable: bool) -> Self { + Self { + uuid, + title, + is_queable, + } } } diff --git a/crabidy-server/src/provider.rs b/crabidy-server/src/provider.rs index fa97a07..1f83228 100644 --- a/crabidy-server/src/provider.rs +++ b/crabidy-server/src/provider.rs @@ -156,7 +156,7 @@ impl ProviderClient for ProviderOrchestrator { #[instrument(skip(self))] fn get_lib_root(&self) -> LibraryNode { let mut root_node = LibraryNode::new(); - let child = LibraryNodeChild::new("node:tidal".to_owned(), "tidal".to_owned()); + let child = LibraryNodeChild::new("node:tidal".to_owned(), "tidal".to_owned(), false); root_node.children.push(child); root_node } diff --git a/tidaldy/src/lib.rs b/tidaldy/src/lib.rs index 3c0b867..57c753a 100644 --- a/tidaldy/src/lib.rs +++ b/tidaldy/src/lib.rs @@ -80,6 +80,7 @@ impl crabidy_core::ProviderClient for Client { let children = vec![crabidy_core::proto::crabidy::LibraryNodeChild::new( "node:userplaylists".to_string(), "playlists".to_string(), + false, )]; crabidy_core::proto::crabidy::LibraryNode { uuid: "node:tidal".to_string(), @@ -118,6 +119,7 @@ impl crabidy_core::ProviderClient for Client { let child = crabidy_core::proto::crabidy::LibraryNodeChild::new( format!("node:playlist:{}", playlist.playlist.uuid), playlist.playlist.title, + true, ); node.children.push(child); }