mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-26 21:18:50 +01:00
merge: 10.7.4 from main branch
This commit is contained in:
commit
dcc99f0e62
3 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@imput/cobalt-api",
|
"name": "@imput/cobalt-api",
|
||||||
"description": "save what you love",
|
"description": "save what you love",
|
||||||
"version": "10.7.3",
|
"version": "10.7.4",
|
||||||
"author": "imput",
|
"author": "imput",
|
||||||
"exports": "./src/cobalt.js",
|
"exports": "./src/cobalt.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|
|
@ -193,7 +193,7 @@ export default async function (o) {
|
||||||
if (playability.reason.endsWith("bot")) {
|
if (playability.reason.endsWith("bot")) {
|
||||||
return { error: "youtube.login" }
|
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" }
|
return { error: "content.video.age" }
|
||||||
}
|
}
|
||||||
if (playability?.error_screen?.reason?.text === "Private video") {
|
if (playability?.error_screen?.reason?.text === "Private video") {
|
||||||
|
|
|
@ -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.
|
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.
|
make sure to replace default URLs with your own or cobalt won't work correctly.
|
||||||
|
|
||||||
4. finally, start the cobalt container (from cobalt directory):
|
4. finally, start the cobalt container (from cobalt directory):
|
||||||
|
|
Loading…
Reference in a new issue