Big debug of pmoqobuz step 1

This commit is contained in:
2025-12-12 21:42:04 +00:00
parent 7389c55970
commit cd19d68703
26 changed files with 18565 additions and 652 deletions

View File

@@ -8,7 +8,7 @@
//! cargo run --example with_cache --features cache
//! ```
use pmoaudiocache::AudioCache;
use pmoaudiocache::Cache as AudioCache;
use pmocovers::Cache as CoverCache;
use pmoqobuz::{QobuzClient, QobuzSource};
use pmosource::MusicSource;
@@ -34,12 +34,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("✅ Caches initialized!\n");
// Create the source with caching enabled
let source = QobuzSource::new_with_cache(
client,
"http://localhost:8080",
Some(cover_cache.clone()),
Some(audio_cache.clone()),
);
let source = QobuzSource::new(client, cover_cache.clone(), audio_cache.clone());
println!("📻 Source: {}", source.name());
println!("🆔 ID: {}", source.id());