fix: handle video details not found

This commit is contained in:
ThetaDev 2022-10-12 00:01:25 +02:00
parent c618c83ff3
commit 0d1e569248
4 changed files with 1044 additions and 3 deletions

View file

@ -632,6 +632,17 @@ async fn get_video_details_agegate() {
assert!(details.recommended.items.is_empty());
}
#[tokio::test]
async fn get_video_details_not_found() {
let rp = RustyPipe::builder().strict().build();
let err = rp.query().video_details("abcdefgLi5X").await.unwrap_err();
assert!(matches!(
err,
Error::Extraction(ExtractionError::ContentUnavailable(_))
))
}
#[tokio::test]
async fn get_video_recommendations() {
let rp = RustyPipe::builder().strict().build();