fix
This commit is contained in:
parent
8c2b0cfdf1
commit
3127d1b287
2 changed files with 10 additions and 5 deletions
|
@ -66,10 +66,15 @@ impl Track {
|
||||||
|
|
||||||
/// Find tracks with no album or artist
|
/// Find tracks with no album or artist
|
||||||
pub async fn get_orphans() -> Vec<Track> {
|
pub async fn get_orphans() -> Vec<Track> {
|
||||||
Self::find(doc! {
|
Self::find(
|
||||||
|
doc! {
|
||||||
"artist_id": None::<String>,
|
"artist_id": None::<String>,
|
||||||
"album_id": None::<String>
|
"album_id": None::<String>
|
||||||
}, None).await.unwrap()
|
},
|
||||||
|
None,
|
||||||
|
)
|
||||||
|
.await
|
||||||
|
.unwrap()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ async fn rocket() -> _ {
|
||||||
.to_cors()
|
.to_cors()
|
||||||
.expect("error creating CORS options");
|
.expect("error creating CORS options");
|
||||||
|
|
||||||
let lib = Libary::new("/Users/angelo/Downloads/Music".into()).await;
|
let lib = Libary::new("./media".into()).await;
|
||||||
|
|
||||||
lib.rescan().await;
|
lib.rescan().await;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue