merge: 10.7.4 from main branch

This commit is contained in:
wukko
2025-02-13 17:20:11 +06:00
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
{
"name": "@imput/cobalt-api",
"description": "save what you love",
"version": "10.7.3",
"version": "10.7.4",
"author": "imput",
"exports": "./src/cobalt.js",
"type": "module",

View File

@ -193,7 +193,7 @@ export default async function (o) {
if (playability.reason.endsWith("bot")) {
return { error: "youtube.login" }
}
if (playability.reason.endsWith("age")) {
if (playability.reason.endsWith("age") || playability.reason.endsWith("inappropriate for some users.")) {
return { error: "content.video.age" }
}
if (playability?.error_screen?.reason?.text === "Private video") {