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()
|
.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 {
|
||||||
|
|
|
||||||
Reference in a new issue