From 69f28d37e9df84e714fac7a183c62079485606e4 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 28 Sep 2024 14:17:00 -0600 Subject: [PATCH] Fix FOX 4K streaming --- README.md | 2 +- package-lock.json | 4 ++-- package.json | 2 +- services/fox-handler.ts | 7 ++++--- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 1d6417d..ad542e0 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@

-Current version: **3.2.1** +Current version: **3.2.2** # About This takes ESPN/ESPN+, FOX Sports, Paramount+, MSG+, NFL+, B1G+, NESN, Mountain West, FloSports, or MLB.tv programming and transforms it into a "live TV" experience with virtual linear channels. It will discover what is on, and generate a schedule of channels that will give you M3U and XMLTV files that you can import into something like [Jellyfin](https://jellyfin.org) or [Channels](https://getchannels.com). diff --git a/package-lock.json b/package-lock.json index 67200bb..d8f1629 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "eplustv", - "version": "3.2.1", + "version": "3.2.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "eplustv", - "version": "3.2.1", + "version": "3.2.2", "license": "MIT", "dependencies": { "axios": "^1.2.2", diff --git a/package.json b/package.json index 08a1339..8f766a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eplustv", - "version": "3.2.1", + "version": "3.2.2", "description": "", "scripts": { "start": "ts-node index.ts", diff --git a/services/fox-handler.ts b/services/fox-handler.ts index 7a1bf6d..c04d875 100644 --- a/services/fox-handler.ts +++ b/services/fox-handler.ts @@ -69,6 +69,7 @@ interface IFoxEvent { FHD: string; }; }; + isUHD: boolean; contentSKUResolved?: { baseId: string; }[]; @@ -107,7 +108,7 @@ const parseCategories = (event: IFoxEvent) => { categories.push(event.sportTag); } - if (event.streamTypes?.find(resolution => resolution === 'HDR' || resolution === 'SDR')) { + if (event.streamTypes?.find(resolution => resolution === 'HDR' || resolution === 'SDR') || event.isUHD) { categories.push('4K'); } @@ -317,6 +318,7 @@ class FoxHandler { const {data} = await axios.post( this.appConfig.api.content.watch, { + capabilities: ['fsdk/yo/v3'], deviceHeight: 2160, deviceWidth: 3840, maxRes: streamOrder[a], @@ -338,7 +340,7 @@ class FoxHandler { break; } catch (e) { console.log( - `Could not get stream data for ${streamOrder[a]}.${ + `Could not get stream data for ${streamOrder[a]}. ${ streamOrder[a + 1] ? `Trying to get ${streamOrder[a + 1]} next...` : '' }`, ); @@ -394,7 +396,6 @@ class FoxHandler { console.log(e); } - // console.log(events); return events; };