mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-05 19:42:03 +02:00
Encapsulate the session data and configuration.
This commit is contained in:
parent
9747bbc470
commit
7a1db5f5a9
7 changed files with 33 additions and 18 deletions
|
@ -219,7 +219,7 @@ impl AudioFileManager {
|
|||
|
||||
pub fn cache_dir(session: &Session, file_id: FileId) -> PathBuf {
|
||||
let name = file_id.to_base16();
|
||||
session.0.config.cache_location.join(&name[0..2])
|
||||
session.config().cache_location.join(&name[0..2])
|
||||
}
|
||||
|
||||
pub fn cache_path(session: &Session, file_id: FileId) -> PathBuf {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue