fix: detect ip-ban error message
This commit is contained in:
parent
f37432a48c
commit
da39c64f30
2 changed files with 2 additions and 2 deletions
|
|
@ -221,6 +221,7 @@ impl MapResponse<VideoPlayer> for response::Player {
|
|||
.find_map(|word| match word {
|
||||
"age" | "inappropriate" => Some(UnavailabilityReason::AgeRestricted),
|
||||
"private" => Some(UnavailabilityReason::Private),
|
||||
"bot" => Some(UnavailabilityReason::IpBan),
|
||||
_ => None,
|
||||
})
|
||||
.unwrap_or_default();
|
||||
|
|
|
|||
Reference in a new issue