Compare commits

...

5 commits

Author SHA1 Message Date
72f3df37e6
Merge remote-tracking branch 'upstream/master'
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m3s
2024-12-24 15:20:15 -03:00
Emilien Devos
6ca59654ba workaround issue with TV not returning any shortDescription 2024-12-24 15:45:50 +01:00
Émilien (perso)
7c0e26f7f8
add section about documentation 2024-12-24 11:57:59 +00:00
Emilien
8084936d5a add message about secret key size 2024-12-16 11:51:41 +01:00
Émilien (perso)
70cf366639
Update to deno 2.1.4 2024-12-16 11:46:18 +01:00
4 changed files with 14 additions and 4 deletions

View file

@ -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 ARG TINI_VERSION=0.19.0

View file

@ -6,8 +6,12 @@ Companion for Invidious which handle all the video stream retrieval from YouTube
- [deno](https://docs.deno.com/runtime/) - [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 SERVER_SECRET_KEY=CHANGEME deno task dev
``` ```

View file

@ -1,7 +1,8 @@
[server] [server]
port = 8282 port = 8282
host = "127.0.0.1" 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" base_url = "http://localhost:8282"
verify_requests = false verify_requests = false

View file

@ -54,6 +54,11 @@ export const youtubePlayerParsing = async (
const streamingData = video.streaming_data; 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 // Modify the original YouTube response to include deciphered URLs
if (streamingData && videoData && videoData.streamingData) { if (streamingData && videoData && videoData.streamingData) {
const ecatcherServiceTracking = videoData.responseContext const ecatcherServiceTracking = videoData.responseContext