feat!: remove TvHtml5Embed client as it got disabled
This commit is contained in:
parent
79a62816ff
commit
9e835c8f38
6 changed files with 32 additions and 62 deletions
14
src/error.rs
14
src/error.rs
|
|
@ -213,10 +213,20 @@ impl ExtractionError {
|
|||
matches!(
|
||||
self,
|
||||
ExtractionError::Unavailable {
|
||||
reason: UnavailabilityReason::AgeRestricted
|
||||
| UnavailabilityReason::UnsupportedClient,
|
||||
reason: UnavailabilityReason::UnsupportedClient,
|
||||
..
|
||||
} | ExtractionError::WrongResult(_)
|
||||
)
|
||||
}
|
||||
|
||||
/// Return true if the video should be fetched as a logged in user
|
||||
pub(crate) fn use_login(&self) -> bool {
|
||||
matches!(
|
||||
self,
|
||||
ExtractionError::Unavailable {
|
||||
reason: UnavailabilityReason::AgeRestricted | UnavailabilityReason::IpBan,
|
||||
..
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue