feat: add music_new_albums/videos

This commit is contained in:
ThetaDev 2022-11-28 00:56:17 +01:00
parent bd936a8c42
commit 8f82694eaf
15 changed files with 103714 additions and 19 deletions

View file

@ -55,6 +55,8 @@ pub async fn download_testfiles(project_root: &Path) {
music_related(&testfiles).await;
music_radio(&testfiles).await;
music_radio_cont(&testfiles).await;
music_new_albums(&testfiles).await;
music_new_videos(&testfiles).await;
}
const CLIENT_TYPES: [ClientType; 5] = [
@ -801,3 +803,27 @@ async fn music_radio_cont(testfiles: &Path) {
let rp = rp_testfile(&json_path);
res.next(&rp.query()).await.unwrap().unwrap();
}
async fn music_new_albums(testfiles: &Path) {
let mut json_path = testfiles.to_path_buf();
json_path.push("music_new");
json_path.push("albums_default.json");
if json_path.exists() {
return;
}
let rp = rp_testfile(&json_path);
rp.query().music_new_albums().await.unwrap();
}
async fn music_new_videos(testfiles: &Path) {
let mut json_path = testfiles.to_path_buf();
json_path.push("music_new");
json_path.push("videos_default.json");
if json_path.exists() {
return;
}
let rp = rp_testfile(&json_path);
rp.query().music_new_videos().await.unwrap();
}