Skip to content

Commit

Permalink
Fix issue with FOX (disabling Fastly)
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Oct 12, 2024
1 parent 505bbc2 commit 1e5d855
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 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.3.1**
Current version: **3.3.2**

# About
This takes ESPN/ESPN+, FOX Sports, Paramount+, MSG+, NFL+, B1G+, NESN, Mountain West, FloSports, CBS Sports, 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.3.1",
"version": "3.3.2",
"description": "",
"scripts": {
"start": "ts-node index.ts",
Expand Down
11 changes: 6 additions & 5 deletions services/fox-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,13 +261,14 @@ class FoxHandler {
await this.getAppConfig();
}

// let cdn;
const data = await this.getSteamData(eventId);
let cdn = 'fastly';
let data;

// while (cdn !== 'akamai|limelight|fastly') {
// console.log('CDN: ', data.trackingData.properties.CDN);
// cdn = data.trackingData.properties.CDN;
// }
while (cdn === 'fastly') {
data = await this.getSteamData(eventId);
cdn = data.trackingData.properties.CDN;
}

if (!data || !data?.url) {
throw new Error('Could not get stream data. Event might be upcoming, ended, or in blackout...');
Expand Down

0 comments on commit 1e5d855

Please sign in to comment.