From 5a2a28d525a823e2d8c20bcd318866b27ce97a56 Mon Sep 17 00:00:00 2001 From: ArnoldDeRuiter <187004+ArnoldDeRuiter@users.noreply.github.com> Date: Mon, 9 Nov 2026 01:09:56 +0100 Subject: [PATCH] Relay API-declared headers on webOS and allow seven more sources, with mkv audio and subtitle choice --- webos/README.md | 46 +++++++- webos/index.html | 1 + webos/js/lib/mediatracks.js | 135 +++++++++++++++++++++++ webos/js/lib/playback.js | 28 ++++- webos/js/lib/providers.js | 18 +++- webos/js/lib/relabel.js | 13 ++- webos/js/player.js | 57 ++++++++-- webos/service/proxy.js | 190 +++++++++++++++++++++++++++++++-- webos/test/browser/app.test.js | 2 +- webos/test/mediatracks.test.js | 121 +++++++++++++++++++++ webos/test/playback.test.js | 23 ++++ webos/test/providers.test.js | 17 ++- webos/test/relay.test.js | 123 +++++++++++++++++++++ 13 files changed, 743 insertions(+), 31 deletions(-) create mode 100644 webos/js/lib/mediatracks.js create mode 100644 webos/test/mediatracks.test.js diff --git a/webos/README.md b/webos/README.md index 44d45add..ae93387a 100644 --- a/webos/README.md +++ b/webos/README.md @@ -84,7 +84,7 @@ This has not been tried with Sozo, and Sozo is not in the Homebrew Channel repos ## Sources -The backend lists 42 ordinary sources. The app allows nine (`js/lib/providers.js`), and shows one only if +The backend lists 42 ordinary sources. The app allows 16 (`js/lib/providers.js`), and shows one only if the live API still offers it. This is a snapshot from November 2026, and the catalogue changes often. Results are from one live run in desktop Chrome, with one title per source: @@ -101,6 +101,34 @@ Results are from one live run in desktop Chrome, with one title per source: | vidapi | Films and series | English | **Did not play.** Its segment host sends no CORS header, so hls.js cannot read it. The chooser appears. | | sportstv | Live | Many | **Did not play**, cause not checked. The chooser appears. It also has a plain-HTTP host and one HEVC channel. | +Seven more play on webOS only, through the relay with the headers the API declares (see below). Most of +their hosts answer 403 without them, and a browser `