fix: switch client if no adaptive stream URLs were returned
This commit is contained in:
parent
ea80717f69
commit
187bf1c9a0
1 changed files with 4 additions and 3 deletions
|
|
@ -393,9 +393,10 @@ impl MapResponse<VideoPlayer> for response::Player {
|
|||
.iter()
|
||||
.all(|f| f.url.is_none() && f.signature_cipher.is_none())
|
||||
{
|
||||
return Err(ExtractionError::InvalidData(
|
||||
"no adaptive stream URLs".into(),
|
||||
));
|
||||
return Err(ExtractionError::Unavailable {
|
||||
reason: UnavailabilityReason::TryAgain,
|
||||
msg: "no adaptive stream URLs".to_owned(),
|
||||
});
|
||||
}
|
||||
|
||||
let video_info = VideoPlayerDetails {
|
||||
|
|
|
|||
Reference in a new issue