Skip to content

Commit da6bba3

Browse files
author
Your Name
committed
Fix nfl linear access check
1 parent 5ce19d3 commit da6bba3

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<img src="https://i.imgur.com/FIGZdR3.png">
33
</p>
44

5-
Current version: **4.1.4**
5+
Current version: **4.1.5**
66

77
# About
88
This takes ESPN+, ESPN, FOX Sports, CBS Sports, Paramount+, Gotham Sports, 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).

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eplustv",
3-
"version": "4.1.4",
3+
"version": "4.1.5",
44
"description": "",
55
"scripts": {
66
"start": "ts-node -r tsconfig-paths/register index.tsx",

services/nfl-handler.ts

+10-2
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,11 @@ class NflHandler {
508508

509509
if (plans) {
510510
const redZoneAccess =
511-
plans.findIndex(p => p.plan === 'NFL_PLUS_PREMIUM' && (p.status === 'ACTIVE' || (p.status === 'CANCELLED' && p.expirationDate >= (new Date()).toISOString().split('T')[0]))) > -1 || networks?.NFLRZ
511+
plans.findIndex(
512+
p =>
513+
p.plan === 'NFL_PLUS_PREMIUM' &&
514+
(p.status === 'ACTIVE' || (p.status === 'CANCELLED' && moment(p.expirationDate).isAfter(moment()))),
515+
) > -1 || networks?.NFLRZ
512516
? true
513517
: false;
514518

@@ -558,7 +562,11 @@ class NflHandler {
558562

559563
if (plans) {
560564
hasPlus =
561-
plans.findIndex(p => (p.plan === 'NFL_PLUS' || p.plan === 'NFL_PLUS_PREMIUM') && (p.status === 'ACTIVE' || (p.status === 'CANCELLED' && p.expirationDate >= (new Date()).toISOString().split('T')[0]))) > -1
565+
plans.findIndex(
566+
p =>
567+
(p.plan === 'NFL_PLUS' || p.plan === 'NFL_PLUS_PREMIUM') &&
568+
(p.status === 'ACTIVE' || (p.status === 'CANCELLED' && moment(p.expirationDate).isAfter(moment()))),
569+
) > -1
562570
? true
563571
: false;
564572
}

0 commit comments

Comments
 (0)