From 56c8817aa8cb7e5efe06ca4d15208fed44ac7c02 Mon Sep 17 00:00:00 2001 From: Ronak Buch Date: Wed, 24 Aug 2022 23:44:28 -0400 Subject: [PATCH] Fix order of parameters to Cache::new When updating to librespot 0.4.0 in c41294c, the volume and audio path parameters were specified in the wrong order. --- src/spotify.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spotify.rs b/src/spotify.rs index 36f61f26..d568de66 100644 --- a/src/spotify.rs +++ b/src/spotify.rs @@ -142,8 +142,8 @@ impl Spotify { }; let cache = Cache::new( Some(librespot_cache_path.clone()), - audio_cache_path, Some(librespot_cache_path.join("volume")), + audio_cache_path, cfg.values() .audio_cache_size .map(|size| (size as u64 * 1048576)),