mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-20 15:17:07 +02:00
api/youtube: catch one more age limit error
This commit is contained in:
parent
9d59a2f5d2
commit
a3ee3d9c16
@ -170,6 +170,10 @@ export default async function(o) {
|
||||
}
|
||||
}
|
||||
|
||||
if (playability.status === "AGE_VERIFICATION_REQUIRED") {
|
||||
return { error: "content.video.age" }
|
||||
}
|
||||
|
||||
if (playability.status !== "OK") {
|
||||
return { error: "content.video.unavailable" };
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user