feat: add UnavailabilityReason: IpBan
This commit is contained in:
parent
53829c543f
commit
401d4e8255
2 changed files with 8 additions and 4 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Reference in a new issue