fix: switch client if no adaptive stream URLs were returned

This commit is contained in:
ThetaDev 2025-03-26 02:44:08 +01:00
parent ea80717f69
commit 187bf1c9a0
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6

View file

@ -393,9 +393,10 @@ impl MapResponse<VideoPlayer> for response::Player {
.iter() .iter()
.all(|f| f.url.is_none() && f.signature_cipher.is_none()) .all(|f| f.url.is_none() && f.signature_cipher.is_none())
{ {
return Err(ExtractionError::InvalidData( return Err(ExtractionError::Unavailable {
"no adaptive stream URLs".into(), reason: UnavailabilityReason::TryAgain,
)); msg: "no adaptive stream URLs".to_owned(),
});
} }
let video_info = VideoPlayerDetails { let video_info = VideoPlayerDetails {