fix: download_testfiles

This commit is contained in:
ThetaDev 2022-10-17 23:45:49 +02:00
parent ae91c46fb2
commit 55861739dc
2 changed files with 8 additions and 9 deletions

View file

@ -194,9 +194,11 @@ async fn comments_top(testfiles: &Path) {
let details = rp.query().video_details("ZeerrnuLi5E").await.unwrap();
let rp = rp_testfile(&json_path);
rp.query()
.video_comments(&details.top_comments.ctoken.unwrap())
details
.top_comments
.next(rp.query())
.await
.unwrap()
.unwrap();
}
@ -212,9 +214,11 @@ async fn comments_latest(testfiles: &Path) {
let details = rp.query().video_details("ZeerrnuLi5E").await.unwrap();
let rp = rp_testfile(&json_path);
rp.query()
.video_comments(&details.latest_comments.ctoken.unwrap())
details
.latest_comments
.next(rp.query())
.await
.unwrap()
.unwrap();
}