Skip to content

Commit

Permalink
Fixed issue with NFL events
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Oct 6, 2024
1 parent 2d7eef0 commit 5f53efb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<img src="https://i.imgur.com/FIGZdR3.png">
</p>

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).
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eplustv",
"version": "3.2.6",
"version": "3.2.7",
"description": "",
"scripts": {
"start": "ts-node index.ts",
Expand Down
7 changes: 4 additions & 3 deletions services/nfl-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ interface INFLEvent {
callSign: string;
linear: boolean;
networks: string[];
broadcastAiringType?: string;
}

const CLIENT_KEY = [
Expand Down Expand Up @@ -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',
}),
});
}
Expand Down Expand Up @@ -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);
}
}
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 5f53efb

Please sign in to comment.