Skip to content

Commit

Permalink
Fix FOX 4K streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Sep 28, 2024
1 parent 97e87c2 commit 69f28d3
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.1**
Current version: **3.2.2**

# 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.1",
"version": "3.2.2",
"description": "",
"scripts": {
"start": "ts-node index.ts",
Expand Down
7 changes: 4 additions & 3 deletions services/fox-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ interface IFoxEvent {
FHD: string;
};
};
isUHD: boolean;
contentSKUResolved?: {
baseId: string;
}[];
Expand Down Expand Up @@ -107,7 +108,7 @@ const parseCategories = (event: IFoxEvent) => {
categories.push(event.sportTag);
}

if (event.streamTypes?.find(resolution => resolution === 'HDR' || resolution === 'SDR')) {
if (event.streamTypes?.find(resolution => resolution === 'HDR' || resolution === 'SDR') || event.isUHD) {
categories.push('4K');
}

Expand Down Expand Up @@ -317,6 +318,7 @@ class FoxHandler {
const {data} = await axios.post(
this.appConfig.api.content.watch,
{
capabilities: ['fsdk/yo/v3'],
deviceHeight: 2160,
deviceWidth: 3840,
maxRes: streamOrder[a],
Expand All @@ -338,7 +340,7 @@ class FoxHandler {
break;
} catch (e) {
console.log(
`Could not get stream data for ${streamOrder[a]}.${
`Could not get stream data for ${streamOrder[a]}. ${
streamOrder[a + 1] ? `Trying to get ${streamOrder[a + 1]} next...` : ''
}`,
);
Expand Down Expand Up @@ -394,7 +396,6 @@ class FoxHandler {
console.log(e);
}

// console.log(events);
return events;
};

Expand Down

0 comments on commit 69f28d3

Please sign in to comment.