From fb3eded670e3487cdf08e4555cc99578519226b7 Mon Sep 17 00:00:00 2001 From: Joe Ipson Date: Sun, 14 Apr 2024 11:13:07 -0600 Subject: [PATCH] Fix issue with FOX Sports quality loop --- README.md | 2 +- package-lock.json | 4 ++-- package.json | 2 +- services/fox-handler.ts | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 2788f1a..d42a246 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@

-Current version: **2.1.11** +Current version: **2.1.12** # About This takes ESPN/ESPN+, FOX Sports, Paramount+, MSG+, and 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 b8471ef..7079a88 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "eplustv", - "version": "2.1.11", + "version": "2.1.12", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "eplustv", - "version": "2.1.11", + "version": "2.1.12", "license": "MIT", "dependencies": { "axios": "^1.2.2", diff --git a/package.json b/package.json index fafef8a..8eb9892 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eplustv", - "version": "2.1.11", + "version": "2.1.12", "description": "", "scripts": { "start": "ts-node index.ts", diff --git a/services/fox-handler.ts b/services/fox-handler.ts index 3408e9a..c79ea88 100644 --- a/services/fox-handler.ts +++ b/services/fox-handler.ts @@ -298,7 +298,7 @@ class FoxHandler { { deviceHeight: 2160, deviceWidth: 3840, - maxRes: streamOrder[resIndex], + maxRes: streamOrder[a], os: 'Android', osv: '11.0.0', streamId: eventId, @@ -317,8 +317,8 @@ class FoxHandler { break; } catch (e) { console.log( - `Could not get stream data for ${streamOrder[resIndex]}.${ - streamOrder[resIndex + 1] && `Trying to get ${streamOrder[resIndex + 1]} next...` + `Could not get stream data for ${streamOrder[a]}.${ + streamOrder[a + 1] ? `Trying to get ${streamOrder[a + 1]} next...` : '' }`, ); }