mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #505] Split the cache in two directories : audio files & the rest #320
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#320
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?
Originally created by @LaurentLouf on GitHub (Jul 24, 2020).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/505
Hello,
This is more a feature request than an issue. Would it be possible to split the cache into two categories : the audio cache and the cache for credentials and settings ? What is the use case ? I'm using librespot on a Raspberry Pi and to preserve the SD card, I have created a tmpfs that I'm using for the cache, so the whole cache is in RAM and gets erased after each reboot. I don't mind that for audio files, but that would be nice to be able to preserve the credentials and the volume setting, by using a second directory to cache those files.
So the idea would be :
Well, all things considered, I might give a go to a PR even if it would my first time writing Rust
@ashthespy commented on GitHub (Jul 25, 2020):
This is actually already halfway there. The main cache path is used to dump things like
credentials.jsonandvolume, while the audio is dumped into afilessubdirectory. But I agree, would be nice to make it explicit.@LaurentLouf commented on GitHub (Jul 25, 2020):
Yes, didn't seem too much of trouble to make a PR even with zero knowledge of Rust, so I'm trying to make it work on my end and I'll create the PR (hopefully it will compile this time)