From 496d0fb9123fc1896a7ced1e786c09dff138ce7a Mon Sep 17 00:00:00 2001 From: Joe Ipson Date: Sun, 31 Dec 2023 12:43:50 -0700 Subject: [PATCH] Fixed issue with NFL games not being scheduled on FOX --- README.md | 2 +- package-lock.json | 2 +- package.json | 2 +- services/fox-handler.ts | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4ddab97..fa3ad1b 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@

-Current version: **2.1.1** +Current version: **2.1.3** # 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 c7e7f80..d3864a7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,7 +6,7 @@ "packages": { "": { "name": "eplustv", - "version": "2.1.2", + "version": "2.1.3", "license": "MIT", "dependencies": { "axios": "^1.2.2", diff --git a/package.json b/package.json index 0b132e5..62c7335 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eplustv", - "version": "2.1.2", + "version": "2.1.3", "description": "", "scripts": { "start": "ts-node index.ts", diff --git a/services/fox-handler.ts b/services/fox-handler.ts index 991d2e4..8edeabc 100644 --- a/services/fox-handler.ts +++ b/services/fox-handler.ts @@ -330,7 +330,7 @@ class FoxHandler { const events: IFoxEvent[] = []; - const now = new Date(); + const now = moment().startOf('day'); const dateRange = `${now.toISOString()}..${moment(now).add(2, 'days').endOf('day').toISOString()}`; @@ -355,7 +355,7 @@ class FoxHandler { m.endDate && m.id ) { - if (m.airingType === 'live') { + if (m.airingType === 'live' || m.airingType === 'new') { events.push(m); } else if (allowReplays && m.airingType !== 'live') { events.push(m);