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:
parent
3e09eff906
commit
5c2b5a21c1
2 changed files with 4 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue