api/youtube: catch one more age limit error
Some checks failed
Run service tests / test service functionality (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
Run service tests / test service: ${{ matrix.service }} (push) Has been cancelled

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") { if (playability.status !== "OK") {
return { error: "content.video.unavailable" }; return { error: "content.video.unavailable" };
} }