diff --git a/Dockerfile b/Dockerfile index 3ddcd83..ce8b55f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM i.sanxian.tech/denoland/deno:debian-2.1.3 AS builder +FROM denoland/deno:debian-2.1.4 AS builder ARG TINI_VERSION=0.19.0 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 +``` diff --git a/config/default.toml b/config/default.toml index 7977b21..a4f09aa 100644 --- a/config/default.toml +++ b/config/default.toml @@ -1,7 +1,8 @@ [server] port = 8282 host = "127.0.0.1" -secret_key = "myBeautifulKey" +# secret key needs to be 16 characters long or more +secret_key = "CHANGE_ME" base_url = "http://localhost:8282" verify_requests = false diff --git a/src/lib/helpers/youtubePlayerHandling.ts b/src/lib/helpers/youtubePlayerHandling.ts index ece931e..fccc268 100644 --- a/src/lib/helpers/youtubePlayerHandling.ts +++ b/src/lib/helpers/youtubePlayerHandling.ts @@ -54,6 +54,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