feat: add UnavailabilityReason: IpBan

This commit is contained in:
ThetaDev 2024-06-16 22:24:59 +02:00
parent 53829c543f
commit 401d4e8255
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6
2 changed files with 8 additions and 4 deletions

View file

@ -180,6 +180,7 @@ impl MapResponse<VideoPlayer> for response::Player {
"members-only" => Some(UnavailabilityReason::MembersOnly),
"country" => Some(UnavailabilityReason::Geoblocked),
"Android" | "websites" => Some(UnavailabilityReason::UnsupportedClient),
"bot" => Some(UnavailabilityReason::IpBan),
_ => None,
})
.unwrap_or_default();