feat: add UnavailabilityReason: IpBan

This commit is contained in:
ThetaDev 2024-06-16 22:24:59 +02:00
parent 46d842f1a8
commit b5dcdebeab
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();