feat: redirect secondary YT channels to the YTM channel

Squashed commit of the following:

commit 88809265ead6eadfafab4b74091dd1af357b9577
Author: ThetaDev <t.testboy@gmail.com>
Date:   Sat Jan 21 22:16:23 2023 +0100

    feat: redirect secondary YT channels to the YTM channel

commit 02cc120912509f40f45da243ba5d37798b9ff411
Author: ThetaDev <t.testboy@gmail.com>
Date:   Mon Jan 9 23:57:18 2023 +0100

    add artists_no_tracks testfile
This commit is contained in:
ThetaDev 2023-01-21 22:18:25 +01:00
parent f44bc6434a
commit a706a7011b
11 changed files with 13543 additions and 23 deletions

View file

@ -713,12 +713,13 @@ async fn music_search_suggestion(testfiles: &Path) {
}
async fn music_artist(testfiles: &Path) {
for (name, id) in [
("default", "UClmXPfaYhXOYsNn_QUyheWQ"),
("no_more_albums", "UC_vmjW5e1xEHhYjY2a0kK1A"),
("only_singles", "UCfwCE5VhPMGxNPFxtVv7lRw"),
("no_artist", "UCh8gHdtzO2tXd593_bjErWg"),
("only_more_singles", "UC0aXrjVxG5pZr99v77wZdPQ"),
for (name, id, all_albums) in [
("default", "UClmXPfaYhXOYsNn_QUyheWQ", true),
("no_more_albums", "UC_vmjW5e1xEHhYjY2a0kK1A", true),
("only_singles", "UCfwCE5VhPMGxNPFxtVv7lRw", true),
("no_artist", "UCh8gHdtzO2tXd593_bjErWg", true),
("only_more_singles", "UC0aXrjVxG5pZr99v77wZdPQ", true),
("secondary_channel", "UCC9192yGQD25eBZgFZ84MPw", false),
] {
let mut json_path = testfiles.to_path_buf();
json_path.push("music_artist");
@ -728,7 +729,7 @@ async fn music_artist(testfiles: &Path) {
}
let rp = rp_testfile(&json_path);
rp.query().music_artist(id, true).await.unwrap();
rp.query().music_artist(id, all_albums).await.unwrap();
}
}