api/youtube: catch one more age limit error

This commit is contained in:
wukko 2024-10-23 14:01:10 +06:00
parent 9d59a2f5d2
commit a3ee3d9c16
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -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" };
}