From 187bf1c9a0e846bff205e0d71a19c5a1ce7b1943 Mon Sep 17 00:00:00 2001 From: ThetaDev Date: Wed, 26 Mar 2025 02:44:08 +0100 Subject: [PATCH] fix: switch client if no adaptive stream URLs were returned --- src/client/player.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/client/player.rs b/src/client/player.rs index 909da1f..42f7759 100644 --- a/src/client/player.rs +++ b/src/client/player.rs @@ -393,9 +393,10 @@ impl MapResponse 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 {