mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-24 12:08:55 +01:00
api/youtube: catch one more age limit error
This commit is contained in:
parent
9d59a2f5d2
commit
a3ee3d9c16
1 changed files with 4 additions and 0 deletions
|
@ -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" };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue