1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-03 01:39:28 +02:00

Fix audio file caching

This commit is contained in:
Roderick van Domburg 2022-01-05 16:43:46 +01:00
parent 3e09eff906
commit 5c2b5a21c1
No known key found for this signature in database
GPG key ID: A9EF5222A26F0451
2 changed files with 4 additions and 4 deletions

View file

@ -336,7 +336,7 @@ impl AudioFile {
debug!("Downloading file {} complete", file_id);
if let Some(cache) = session_.cache() {
if let Some(cache_id) = cache.file(file_id) {
if let Some(cache_id) = cache.file_path(file_id) {
if let Err(e) = cache.save_file(file_id, &mut file) {
error!("Error caching file {} to {:?}: {}", file_id, cache_id, e);
} else {