Skip to content

Commit

Permalink
Fix order of parameters to Cache::new
Browse files Browse the repository at this point in the history
When updating to librespot 0.4.0 in c41294c, the volume and audio path
parameters were specified in the wrong order.
  • Loading branch information
rbuch authored and hrkfdn committed Aug 25, 2022
1 parent b8b565d commit 56c8817
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spotify.rs
Expand Up @@ -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)),
Expand Down

0 comments on commit 56c8817

Please sign in to comment.