Skip to content

Commit

Permalink
Added B1G+
Browse files Browse the repository at this point in the history
  • Loading branch information
m0ngr31 committed Sep 5, 2024
1 parent fe121d3 commit 1fa1a1a
Show file tree
Hide file tree
Showing 7 changed files with 376 additions and 8 deletions.
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,15 @@
<img src="https://i.imgur.com/FIGZdR3.png">
</p>

Current version: **2.1.13**
Current version: **2.2.0**

# 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).
This takes ESPN/ESPN+, FOX Sports, Paramount+, MSG+, B1G+, 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).

## Notes
* This was not made for pirating streams. This is made for using your own credentials and have a different presentation than the ESPN, FOX Sports, and MLB.tv apps currently provide.
* This was not made for pirating streams. This is made for using your own credentials and have a different presentation than the streaming apps currently provide.
* The Mouse might not like it and it could be taken down at any minute. Enjoy it while it lasts. ¯\\_(ツ)_

If you're using the `USE_LINEAR` option, have your client pull the XMLTV file every 4 hours so it can stay current if channels change.

# Using
The server exposes 2 main endpoints:

Expand All @@ -28,7 +26,7 @@ The recommended way of running is to pull the image from [Docker Hub](https://hu
| Environment Variable | Description | Required? | Default |
|---|---|---|---|
| START_CHANNEL | What the first channel number should be. | No | 1 |
| NUM_OF_CHANNELS | How many channels to create? This is dependent on the networks you are using. A good number to start with is >= 150 if you are using ESPN+. | No | 150 |
| NUM_OF_CHANNELS | How many channels to create? This is dependent on the networks you are using. A good number to start with is >= 200 if you are using ESPN+. | No | 200 |
| PROXY_SEGMENTS | Proxy keyed `*.ts` files. | No | False |
| PUID | Current user ID. Use if you have permission issues. Needs to be combined with PGID. | No | - |
| PGID | Current group ID. Use if you have permission issues. Needs to be combined with PUID. | No | - |
Expand Down Expand Up @@ -68,6 +66,14 @@ Use if you would like to login with Paramount+
|---|---|---|---|
| PARAMOUNTPLUS | Set if you would like CBS Sports events | False | False |

#### B1G+
Use if you would like to login with your B1G+ account
| Environment Variable | Description | Default |
|---|---|---|
| B1GPLUS | Set if you would like to use B1G+ | False |
| B1GPLUS_USER | B1G+ Username | False |
| B1GPLUS_PASS | B1G+ Password | False |

#### MLB.tv
Use if you would like to login with your MLB.tv account
| Environment Variable | Description | Default |
Expand Down
6 changes: 6 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {scheduleEntries} from './services/build-schedule';
import {espnHandler} from './services/espn-handler';
import {foxHandler} from './services/fox-handler';
import {mlbHandler} from './services/mlb-handler';
import {b1gHandler} from './services/b1g-handler';
import {paramountHandler} from './services/paramount-handler';
import {msgHandler} from './services/msg-handler';
import {cleanEntries, removeChannelStatus} from './services/shared-helpers';
Expand All @@ -32,6 +33,7 @@ const schedule = async () => {
await espnHandler.getSchedule();
await foxHandler.getSchedule();
await mlbHandler.getSchedule();
await b1gHandler.getSchedule();
await paramountHandler.getSchedule();
await msgHandler.getSchedule();

Expand Down Expand Up @@ -209,6 +211,9 @@ process.on('SIGINT', shutDown);
await mlbHandler.initialize();
await mlbHandler.refreshTokens();

await b1gHandler.initialize();
await b1gHandler.refreshTokens();

await paramountHandler.initialize();
await paramountHandler.refreshTokens();

Expand All @@ -231,6 +236,7 @@ setInterval(async () => {
await espnHandler.refreshTokens();
await foxHandler.refreshTokens();
await mlbHandler.refreshTokens();
await b1gHandler.refreshTokens();
await paramountHandler.refreshTokens();
await msgHandler.refreshTokens();
}, 1000 * 60 * 30);
Expand Down
Loading

0 comments on commit 1fa1a1a

Please sign in to comment.