mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-12 05:07:41 +02:00
api/youtube: catch one more age limit error
This commit is contained in:
@ -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" };
|
||||
}
|
||||
|
Reference in New Issue
Block a user