1
0
Fork 0
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:
Paul Lietar 2016-01-26 22:34:57 +00:00
parent 9747bbc470
commit 7a1db5f5a9
7 changed files with 33 additions and 18 deletions

View file

@ -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 {