From 33ce314775ea8f7132417308c2efc946030036cc Mon Sep 17 00:00:00 2001 From: jj Date: Tue, 11 Feb 2025 20:14:31 +0100 Subject: [PATCH 1/3] docs/run-an-instance: remove mention of "web" in composefile this has not been relevant for a while now --- docs/run-an-instance.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/run-an-instance.md b/docs/run-an-instance.md index 60a3c8aa..ea31cfc5 100644 --- a/docs/run-an-instance.md +++ b/docs/run-an-instance.md @@ -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): From b5ba86dd7578df49ee622d8c81649d033b44049c Mon Sep 17 00:00:00 2001 From: wukko Date: Thu, 13 Feb 2025 17:09:03 +0600 Subject: [PATCH 2/3] api/youtube: return a proper error if the video is "inappropriate" --- api/src/processing/services/youtube.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/processing/services/youtube.js b/api/src/processing/services/youtube.js index 3240c163..a4c54a82 100644 --- a/api/src/processing/services/youtube.js +++ b/api/src/processing/services/youtube.js @@ -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") { From b540e48ffb30b4a7b32d2602317c97810ca78602 Mon Sep 17 00:00:00 2001 From: wukko Date: Thu, 13 Feb 2025 17:19:32 +0600 Subject: [PATCH 3/3] api/package: bump version to 10.7.4 --- api/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/package.json b/api/package.json index 0660b0d8..72e573b5 100644 --- a/api/package.json +++ b/api/package.json @@ -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",