mirror of
https://github.com/imputnet/cobalt.git
synced 2026-05-21 05:40:27 -05:00
[PR #1174] [MERGED] api: automatically pull youtube session tokens from a session server #2793
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/imputnet/cobalt/pull/1174
Author: @wukko
Created: 3/19/2025
Status: ✅ Merged
Merged: 3/19/2025
Merged by: @github-actions[bot]
Base:
main← Head:auto-potoken📝 Commits (7)
b6cd0adapi: automatically pull youtube session tokens from a session server4e6d1c4api/tests/youtube: allow HLS tests to faild1b5983api/youtube: disable HLS if a session server is used073b169api: remove code & docs related to youtube oauthb7fb8d2docs/run-an-instance: add info about YOUTUBE_SESSION_SERVERf18d28dweb/i18n/error: add api.youtube.no_session_tokensda040f1docs/examples/docker: add yt-session-generator example📊 Changes
13 files changed (+119 additions, -139 deletions)
View changed files
📝
api/package.json(+0 -1)📝
api/src/config.js(+3 -0)📝
api/src/core/api.js(+6 -0)📝
api/src/processing/cookie/manager.js(+0 -1)➕
api/src/processing/helpers/youtube-session.js(+74 -0)📝
api/src/processing/services/youtube.js(+18 -62)➖
api/src/util/generate-youtube-tokens.js(+0 -38)📝
api/src/util/tests/youtube.json(+4 -0)➖
docs/configure-for-youtube.md(+0 -33)📝
docs/examples/cookies.example.json(+0 -3)📝
docs/examples/docker-compose.example.yml(+11 -0)📝
docs/run-an-instance.md(+1 -0)📝
web/i18n/en/error.json(+2 -1)📄 Description
if provided, cobalt will pull poToken & visitor_data from an instance of invidious' youtube-trusted-session-generator or its fork/counterpart (such as yt-session-generator, which we will use)
potentially closes #1173
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.