merge: 10.7.4 from main branch

This commit is contained in:
wukko 2025-02-13 17:20:11 +06:00
commit dcc99f0e62
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2
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") {

View file

@ -18,7 +18,7 @@ if you need help with installing docker, follow *only the first step* of these t
```
i'm using `nano` in this example, it may not be available in your distro. you can use any other text editor.
3. copy and paste the [sample config from here](examples/docker-compose.example.yml) for either web or api instance (or both, if you wish) and edit it to your needs.
3. copy and paste the [sample config from here](examples/docker-compose.example.yml) and edit it to your needs.
make sure to replace default URLs with your own or cobalt won't work correctly.
4. finally, start the cobalt container (from cobalt directory):