mirror of
https://github.com/Dangoware/dmp-core.git
synced 2025-04-20 04:02:54 -05:00
made 2 tiny changes
This commit is contained in:
parent
e706d232d6
commit
9bb1ed7ab5
2 changed files with 2 additions and 2 deletions
|
@ -172,7 +172,7 @@ fn test2() {
|
||||||
let uuid = config.libraries.get_default().unwrap().uuid.clone();
|
let uuid = config.libraries.get_default().unwrap().uuid.clone();
|
||||||
let mut lib = MusicLibrary::init(Arc::new(RwLock::from(config.clone())), uuid).unwrap();
|
let mut lib = MusicLibrary::init(Arc::new(RwLock::from(config.clone())), uuid).unwrap();
|
||||||
lib.scan_folder("test-config/music/").unwrap();
|
lib.scan_folder("test-config/music/").unwrap();
|
||||||
lib.save(&config).unwrap();
|
lib.save(config.clone()).unwrap();
|
||||||
dbg!(&lib);
|
dbg!(&lib);
|
||||||
dbg!(&config);
|
dbg!(&config);
|
||||||
}
|
}
|
||||||
|
|
|
@ -104,7 +104,7 @@ impl<'a> Playlist<'a> {
|
||||||
.unwrap();
|
.unwrap();
|
||||||
m3u8.write_to(&mut file).unwrap();
|
m3u8.write_to(&mut file).unwrap();
|
||||||
}
|
}
|
||||||
pub fn from_file(file: std::fs::File) -> Playlist<'a> {
|
pub fn from_m3u8(file: std::fs::File) -> Playlist<'a> {
|
||||||
todo!()
|
todo!()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue