[PR #867] [MERGED] api/youtube: add an option to use HLS streams #1274

Closed
opened 2025-11-09 10:09:35 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/imputnet/cobalt/pull/867
Author: @wukko
Created: 10/28/2024
Status: Merged
Merged: 10/28/2024
Merged by: @github-actions[bot]

Base: developHead: youtube-hls


📝 Commits (10+)

  • a46e043 api/match-action: rename isM3U8 to isHLS and u to url
  • 24ae08b api/stream: add isHLS to stream cache
  • c9eefc4 api/youtube: add an option to use HLS streams
  • 60b22cb web: add support for youtube hls
  • fba6ba0 api/youtube: add hls codec fallback, update hls error code, refactor
  • 3ed51c9 web/i18n/error: add youtube hls error
  • 0ddb3e3 api/match-action: add isHLS to audio stream info
  • effec1b api/youtube: return correct audio url in hls mode
  • 866427a api/youtube: fix local variable overlap
  • 6b1eadb api/util/tests: add youtube hls tests

📊 Changes

20 files changed (+296 additions, -86 deletions)

View changed files

📝 api/src/processing/match-action.js (+13 -10)
📝 api/src/processing/match.js (+2 -1)
📝 api/src/processing/request.js (+2 -2)
📝 api/src/processing/schema.js (+2 -0)
📝 api/src/processing/service-config.js (+1 -1)
📝 api/src/processing/services/bluesky.js (+1 -1)
📝 api/src/processing/services/dailymotion.js (+1 -1)
📝 api/src/processing/services/rutube.js (+1 -1)
📝 api/src/processing/services/vimeo.js (+1 -1)
📝 api/src/processing/services/youtube.js (+186 -59)
📝 api/src/stream/internal.js (+6 -3)
📝 api/src/stream/manage.js (+5 -2)
📝 api/src/stream/types.js (+1 -1)
📝 api/src/util/tests.json (+47 -0)
📝 web/i18n/en/error.json (+2 -1)
📝 web/i18n/en/settings.json (+5 -1)
📝 web/src/lib/api/api.ts (+2 -1)
📝 web/src/lib/settings/defaults.ts (+1 -0)
📝 web/src/lib/types/settings.ts (+1 -0)
📝 web/src/routes/settings/video/+page.svelte (+16 -0)

📄 Description

HLS streams don't get cut off (at this time), so this is a partial fix for #647


🔄 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/867 **Author:** [@wukko](https://github.com/wukko) **Created:** 10/28/2024 **Status:** ✅ Merged **Merged:** 10/28/2024 **Merged by:** [@github-actions[bot]](https://github.com/apps/github-actions) **Base:** `develop` ← **Head:** `youtube-hls` --- ### 📝 Commits (10+) - [`a46e043`](https://github.com/imputnet/cobalt/commit/a46e04358aefcb3ff8ad861a95f536bc03b3d31a) api/match-action: rename `isM3U8` to `isHLS` and `u` to `url` - [`24ae08b`](https://github.com/imputnet/cobalt/commit/24ae08b1050fb78f3dd6776617e69027014c6122) api/stream: add `isHLS` to stream cache - [`c9eefc4`](https://github.com/imputnet/cobalt/commit/c9eefc4d553b795e477977183e46850f9c153a74) api/youtube: add an option to use HLS streams - [`60b22cb`](https://github.com/imputnet/cobalt/commit/60b22cb5f7d1bbd2ab3b4da2f185997599fe8b57) web: add support for youtube hls - [`fba6ba0`](https://github.com/imputnet/cobalt/commit/fba6ba09c2e9633a3e09c05013be092b4d80642e) api/youtube: add hls codec fallback, update hls error code, refactor - [`3ed51c9`](https://github.com/imputnet/cobalt/commit/3ed51c9eeb9b2b08796c918a9a2c6610b749fb3f) web/i18n/error: add youtube hls error - [`0ddb3e3`](https://github.com/imputnet/cobalt/commit/0ddb3e3ecc9f8a29b920c62aad9a26e12381bbf3) api/match-action: add isHLS to audio stream info - [`effec1b`](https://github.com/imputnet/cobalt/commit/effec1bfb983d4ebb8e23a3e133a76040dc90705) api/youtube: return correct audio url in hls mode - [`866427a`](https://github.com/imputnet/cobalt/commit/866427a7a79d66d5f6762851faccf34b1e3254d8) api/youtube: fix local variable overlap - [`6b1eadb`](https://github.com/imputnet/cobalt/commit/6b1eadbe09ad7c885ddd08bf659c69cb9ed2da2c) api/util/tests: add youtube hls tests ### 📊 Changes **20 files changed** (+296 additions, -86 deletions) <details> <summary>View changed files</summary> 📝 `api/src/processing/match-action.js` (+13 -10) 📝 `api/src/processing/match.js` (+2 -1) 📝 `api/src/processing/request.js` (+2 -2) 📝 `api/src/processing/schema.js` (+2 -0) 📝 `api/src/processing/service-config.js` (+1 -1) 📝 `api/src/processing/services/bluesky.js` (+1 -1) 📝 `api/src/processing/services/dailymotion.js` (+1 -1) 📝 `api/src/processing/services/rutube.js` (+1 -1) 📝 `api/src/processing/services/vimeo.js` (+1 -1) 📝 `api/src/processing/services/youtube.js` (+186 -59) 📝 `api/src/stream/internal.js` (+6 -3) 📝 `api/src/stream/manage.js` (+5 -2) 📝 `api/src/stream/types.js` (+1 -1) 📝 `api/src/util/tests.json` (+47 -0) 📝 `web/i18n/en/error.json` (+2 -1) 📝 `web/i18n/en/settings.json` (+5 -1) 📝 `web/src/lib/api/api.ts` (+2 -1) 📝 `web/src/lib/settings/defaults.ts` (+1 -0) 📝 `web/src/lib/types/settings.ts` (+1 -0) 📝 `web/src/routes/settings/video/+page.svelte` (+16 -0) </details> ### 📄 Description HLS streams don't get cut off (at this time), so this is a partial fix for #647 --- <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 2025-11-09 10:09:35 -06:00
Sign in to join this conversation.