Amélioration des pmoplaylist

This commit is contained in:
2025-12-17 08:31:47 +01:00
parent d6920703a1
commit ca36a102e5
11 changed files with 201 additions and 33 deletions

View File

@@ -20,7 +20,7 @@ use pmoaudiocache::{register_audio_cache, AudioCacheConfigExt, Cache as AudioCac
use pmoconfig::get_config;
use pmocovers::Cache as CoverCache;
use pmocovers::CoverCacheConfigExt;
use pmoplaylist::PlaylistManager;
use pmoplaylist::{PlaylistManager, PlaylistRole};
use pmoqobuz::{QobuzClient, QobuzSource};
use std::sync::Arc;
use std::time::Instant;
@@ -107,7 +107,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let playlist_manager = PlaylistManager();
let playlist_id = {
let writer = playlist_manager
.create_persistent_playlist("lazy-test".to_string())
.create_persistent_playlist_with_role("lazy-test".to_string(), PlaylistRole::Album)
.await?;
writer.id().to_string()
}; // Drop writer here to release the lock