From 5f53efb9c363f4c5ac7a9d8e901b2748a536a776 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 6 Oct 2024 10:09:41 -0600 Subject: [PATCH] Fixed issue with NFL events --- README.md | 2 +- package-lock.json | 4 ++-- package.json | 2 +- services/nfl-handler.ts | 7 ++++--- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 93bb71b..091769c 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@

-Current version: **3.2.6** +Current version: **3.2.7** # 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 e22f05e..7fa8394 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "eplustv", - "version": "3.2.6", + "version": "3.2.7", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "eplustv", - "version": "3.2.6", + "version": "3.2.7", "license": "MIT", "dependencies": { "axios": "^1.2.2", diff --git a/package.json b/package.json index 7e8eadc..63dfaa0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eplustv", - "version": "3.2.6", + "version": "3.2.7", "description": "", "scripts": { "start": "ts-node index.ts", diff --git a/services/nfl-handler.ts b/services/nfl-handler.ts index 9b35a56..84d3e2e 100644 --- a/services/nfl-handler.ts +++ b/services/nfl-handler.ts @@ -40,6 +40,7 @@ interface INFLEvent { callSign: string; linear: boolean; networks: string[]; + broadcastAiringType?: string; } const CLIENT_KEY = [ @@ -212,7 +213,7 @@ const parseAirings = async (events: INFLEvent[]) => { ...(isLinear && { channel: event.callSign, linear: true, - replay: event.callSign === 'NFLNETWORK' || event.callSign === 'NFLDIGITAL1_OO_v3', + replay: event.callSign === 'NFLDIGITAL1_OO_v3' || event.broadcastAiringType === 'REAIR', }), }); } @@ -336,7 +337,7 @@ class NflHandler { redZoneAccess ) { events.push(i); - } else if (i.callSign === 'NFLNETWORK' && nflNetworkAccess) { + } else if (i.callSign === 'NFLNETWORK' && nflNetworkAccess && i.contentType !== 'AUDIO') { events.push(i); } } @@ -387,7 +388,7 @@ class NflHandler { idp: this.mvpdIdp, mvpdUUID: this.mvpdUUID, mvpdUserId: this.mvpdUserId, - networks: event.feed, + networks: event.feed || 'NFLN', }), ...(this.checkPrimeAccess() && { amazonPrimeUUID: this.amazonPrimeUUID,