feat!: remove TvHtml5Embed client as it got disabled

This commit is contained in:
ThetaDev 2024-10-23 00:52:17 +02:00
parent 79a62816ff
commit 9e835c8f38
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6
6 changed files with 32 additions and 62 deletions

View file

@ -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,
..
}
)
}
}