feat: add music album
This commit is contained in:
parent
566b3e5bfc
commit
3b738a55ad
12 changed files with 14904 additions and 17 deletions
|
|
@ -38,6 +38,7 @@ pub async fn download_testfiles(project_root: &Path) {
|
|||
|
||||
music_playlist(&testfiles).await;
|
||||
music_playlist_cont(&testfiles).await;
|
||||
music_album(&testfiles).await;
|
||||
}
|
||||
|
||||
const CLIENT_TYPES: [ClientType; 5] = [
|
||||
|
|
@ -498,3 +499,21 @@ async fn music_playlist_cont(testfiles: &Path) {
|
|||
let rp = rp_testfile(&json_path);
|
||||
playlist.tracks.next(&rp.query()).await.unwrap().unwrap();
|
||||
}
|
||||
|
||||
async fn music_album(testfiles: &Path) {
|
||||
for (name, id) in [
|
||||
("one_artist", "MPREb_nlBWQROfvjo"),
|
||||
("various_artists", "MPREb_8QkDeEIawvX"),
|
||||
("single", "MPREb_bHfHGoy7vuv"),
|
||||
] {
|
||||
let mut json_path = testfiles.to_path_buf();
|
||||
json_path.push("music_playlist");
|
||||
json_path.push(format!("album_{}.json", name));
|
||||
if json_path.exists() {
|
||||
continue;
|
||||
}
|
||||
|
||||
let rp = rp_testfile(&json_path);
|
||||
rp.query().music_album(id).await.unwrap();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue