mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #518] [MERGED] Handle cache full situation #957
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#957
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/librespot-org/librespot/pull/518
Author: @LaurentLouf
Created: 8/6/2020
Status: ✅ Merged
Merged: 12/13/2020
Merged by: @sashahilton00
Base:
dev← Head:feature-handle_cache_full_situation📝 Commits (3)
f075a75Disable audio cache when there is an error trying to create a file9d832baInstead of disabling audio cache, just clean the audio cache and start caching again from the current file5f11ddeMain issue is probably when copying the content to the file, not during the file creation, but handle both cases just to be sure📊 Changes
1 file changed (+17 additions, -3 deletions)
View changed files
📝
core/src/cache.rs(+17 -3)📄 Description
Automatically clean the audio cache when we encounter an error writing some file to the cache. Useful when used on a small target like the Pi or using the RAM as audio cache, which might get full quickly, especially if the Raspberry is always on
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.