Je ne sais pas trop

This commit is contained in:
2025-10-26 23:49:20 +01:00
parent 078d6cb5f8
commit ea6dd03ac0
15 changed files with 66 additions and 24 deletions

View File

@@ -37,6 +37,7 @@ impl ToDIDL for Album {
parent_id: parent_id.to_string(),
restricted: Some("1".to_string()),
child_count: self.tracks_count.map(|c| c.to_string()),
searchable: Some("1".to_string()),
title: self.formatted_title(),
class: "object.container.album.musicAlbum".to_string(),
containers: Vec::new(),
@@ -134,6 +135,7 @@ impl ToDIDL for Playlist {
parent_id: parent_id.to_string(),
restricted: Some("1".to_string()),
child_count: self.tracks_count.map(|c| c.to_string()),
searchable: Some("1".to_string()),
title: self.name.clone(),
class: "object.container.playlistContainer".to_string(),
containers: Vec::new(),

View File

@@ -275,6 +275,7 @@ impl MusicSource for QobuzSource {
parent_id: "0".to_string(),
restricted: Some("1".to_string()),
child_count: Some("2".to_string()), // Favorites + Search (simplified)
searchable: Some("1".to_string()),
title: "Qobuz".to_string(),
class: "object.container".to_string(),
containers: vec![
@@ -284,6 +285,7 @@ impl MusicSource for QobuzSource {
parent_id: "qobuz".to_string(),
restricted: Some("1".to_string()),
child_count: None, // Will be determined when browsed
searchable: Some("1".to_string()),
title: "My Favorites".to_string(),
class: "object.container".to_string(),
containers: vec![],