[PR #1174] [MERGED] api: automatically pull youtube session tokens from a session server #14033

Closed
opened 2026-05-17 16:21:12 -05:00 by GiteaMirror · 0 comments
Owner

📋 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: mainHead: auto-potoken


📝 Commits (7)

  • b6cd0ad api: automatically pull youtube session tokens from a session server
  • 4e6d1c4 api/tests/youtube: allow HLS tests to fail
  • d1b5983 api/youtube: disable HLS if a session server is used
  • 073b169 api: remove code & docs related to youtube oauth
  • b7fb8d2 docs/run-an-instance: add info about YOUTUBE_SESSION_SERVER
  • f18d28d web/i18n/error: add api.youtube.no_session_tokens
  • da040f1 docs/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.

## 📋 Pull Request Information **Original PR:** https://github.com/imputnet/cobalt/pull/1174 **Author:** [@wukko](https://github.com/wukko) **Created:** 3/19/2025 **Status:** ✅ Merged **Merged:** 3/19/2025 **Merged by:** [@github-actions[bot]](https://github.com/apps/github-actions) **Base:** `main` ← **Head:** `auto-potoken` --- ### 📝 Commits (7) - [`b6cd0ad`](https://github.com/imputnet/cobalt/commit/b6cd0ad727878d86a025cbfdef15b368f4fd2f15) api: automatically pull youtube session tokens from a session server - [`4e6d1c4`](https://github.com/imputnet/cobalt/commit/4e6d1c40518fe80ccdf5c0c55c308502f15ffd5b) api/tests/youtube: allow HLS tests to fail - [`d1b5983`](https://github.com/imputnet/cobalt/commit/d1b5983e492d72f406b28cdb6cfa2441e5b4bf5d) api/youtube: disable HLS if a session server is used - [`073b169`](https://github.com/imputnet/cobalt/commit/073b169a939bc41e53c31e91a9d9ed1dcfa86a1f) api: remove code & docs related to youtube oauth - [`b7fb8d2`](https://github.com/imputnet/cobalt/commit/b7fb8d26adb28daae0036058de551875ff817c3c) docs/run-an-instance: add info about YOUTUBE_SESSION_SERVER - [`f18d28d`](https://github.com/imputnet/cobalt/commit/f18d28dcfc4c8b2d13cac70c84456b5ebeca3edf) web/i18n/error: add api.youtube.no_session_tokens - [`da040f1`](https://github.com/imputnet/cobalt/commit/da040f1a092d596ac80cb2d5aba752af469d757f) docs/examples/docker: add yt-session-generator example ### 📊 Changes **13 files changed** (+119 additions, -139 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 Description if provided, cobalt will pull poToken & visitor_data from an instance of [invidious' youtube-trusted-session-generator](https://github.com/iv-org/youtube-trusted-session-generator) or its fork/counterpart (such as [yt-session-generator](https://github.com/imputnet/yt-session-generator), which we will use) potentially closes #1173 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-17 16:21:12 -05:00
Sign in to join this conversation.