From 70cf366639406512aac7bf61a1b093e2b260b92e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milien=20=28perso=29?= <4016501+unixfox@users.noreply.github.com> Date: Mon, 16 Dec 2024 11:46:18 +0100 Subject: [PATCH 1/4] Update to deno 2.1.4 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 94b4802..a432697 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM denoland/deno:debian-2.1.3 AS builder +FROM denoland/deno:debian-2.1.4 AS builder ARG TINI_VERSION=0.19.0 From 8084936d5a501e7806ca0704eb9d97eda701031f Mon Sep 17 00:00:00 2001 From: Emilien <4016501+unixfox@users.noreply.github.com> Date: Mon, 16 Dec 2024 11:51:41 +0100 Subject: [PATCH 2/4] add message about secret key size --- config/default.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/config/default.toml b/config/default.toml index c1d43f8..21431a6 100644 --- a/config/default.toml +++ b/config/default.toml @@ -1,6 +1,7 @@ [server] port = 8282 host = "127.0.0.1" +# secret key needs to be 16 characters long or more secret_key = "CHANGE_ME" base_url = "http://localhost:8282" verify_requests = false From 7c0e26f7f87e04c163e0e1d6ff6104bb32ae1b0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milien=20=28perso=29?= <4016501+unixfox@users.noreply.github.com> Date: Tue, 24 Dec 2024 11:57:59 +0000 Subject: [PATCH 3/4] add section about documentation --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 97e5220..bfda639 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,12 @@ Companion for Invidious which handle all the video stream retrieval from YouTube - [deno](https://docs.deno.com/runtime/) -## Run Locally +## Documentation +- Installation guide: https://docs.invidious.io/companion-installation/ +- Extra documentation for Invidious companion: https://github.com/iv-org/invidious-companion/wiki + +## Run Locally (development) ``` SERVER_SECRET_KEY=CHANGEME deno task dev -``` \ No newline at end of file +``` From 6ca59654baeceaa13f5c5637937bdffbe7d7b17a Mon Sep 17 00:00:00 2001 From: Emilien Devos <4016501+unixfox@users.noreply.github.com> Date: Tue, 24 Dec 2024 15:45:50 +0100 Subject: [PATCH 4/4] workaround issue with TV not returning any shortDescription --- src/lib/helpers/youtubePlayerHandling.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/helpers/youtubePlayerHandling.ts b/src/lib/helpers/youtubePlayerHandling.ts index a545e12..11b7ae3 100644 --- a/src/lib/helpers/youtubePlayerHandling.ts +++ b/src/lib/helpers/youtubePlayerHandling.ts @@ -45,6 +45,11 @@ export const youtubePlayerParsing = async ( const streamingData = video.streaming_data; + // WORKAROUND the issue with TV client not returning any short description + if (!videoData.videoDetails.shortDescription) { + videoData.videoDetails.shortDescription = ""; + } + // Modify the original YouTube response to include deciphered URLs if (streamingData && videoData && videoData.streamingData) { const ecatcherServiceTracking = videoData.responseContext