Mlb.tv update

For those of you who watch mlb through one of the docker containers... As you may be aware mlb changed their api last week and rendered the docker solutions unusable.

One of the solutions I used prior was Tony Wagner's mlbserver. Once the api changed, he discontinued that project and has created a new one (plugin.video.mlbserver )

m3u support is working!

If you want to set this up in preparation for the update, here is my portainer stacks info:

version: "3"
services:
  plugin.video.mlbserver :
    image: tonywagner/plugin.video.mlbserver
    container_name: plugin.video.mlbserver 
    environment:
      - TZ=America/New_York #change if necessary
    ports:
      - 5714:5714
    dns: #optional replace the placeholders or delete these 3 lines
      - x.x.x.x
      - y.y.y.y

    restart: unless-stopped
    volumes: #create volume in portainer called "mlbserver" before implementing stack
     - mlbserver:/plugin.video.mlbserver/data/  
 
volumes: 
  mlbserver:
    external: true

Edit:
Here is my m3u for those that are interested. I have the gracenote guide data for each team via fubo as well as all of the logos. All you have to do is paste this in the text config for your custom channel and no other config is necessary. I have the teams sorted by league.

Change the channel numbers as desired and of course edit the IP address for your specific environment

#EXTM3U
#EXTINF:-1 CUID="MLBTV.WSH" channelID="MLBTV.WSH" tvg-num="900" tvg-chno="900" tvc-guide-stationid="136234" tvg-logo="https://content.sportslogos.net/logos/54/578/full/washington_nationals_logo_primary_20117280.png" group-title="MLBTV",Nationals
http://192.168.12.41:5714/mlb/stream.m3u8?teamId=120

#EXTINF:-1 CUID="MLBTV.PHI" channelID="MLBTV.PHI" tvg-num="901" tvg-chno="901" tvc-guide-stationid="136225" tvg-logo="https://content.sportslogos.net/logos/54/70/full/philadelphia_phillies_logo_primary_20193931.png" group-title="MLBTV",Phillies
http://192.168.12.41:5714/mlb/stream.m3u8?teamId=143

#EXTINF:-1 CUID="MLBTV.ATL" channelID="MLBTV.ATL" tvg-num="902" tvg-chno="902" tvc-guide-stationid="136201" tvg-logo="https://content.sportslogos.net/logos/54/51/full/atlanta_braves_logo_primary_20221869.png" group-title="MLBTV",Braves
http://192.168.12.41:5714/mlb/stream.m3u8?teamId=144

#EXTINF:-1 CUID="MLBTV.NYM" channelID="MLBTV.NYM" tvg-num="903" tvg-chno="903" tvc-guide-stationid="136222" tvg-logo="https://content.sportslogos.net/logos/54/67/full/m01gfgeorgvbfw15fy04alujm.png" group-title="MLBTV",Mets
http://192.168.12.41:5714/mlb/stream.m3u8?teamId=121

#EXTINF:-1 CUID="MLBTV.MIA" channelID="MLBTV.MIA" tvg-num="904" tvg-chno="904" tvc-guide-stationid="136219" tvg-logo="https://content.sportslogos.net/logos/54/3637/full/miami_marlins_logo_primary_20194007.png" group-title="MLBTV",Marlins
http://192.168.12.41:5714/mlb/stream.m3u8?teamId=146

#EXTINF:-1 CUID="MLBTV.MIL" channelID="MLBTV.MIL" tvg-num="905" tvg-chno="905" tvc-guide-stationid="136220" tvg-logo="https://content.sportslogos.net/logos/54/64/full/6474_milwaukee_brewers-primary-2020.png" group-title="MLBTV",Brewers
http://192.168.12.41:5714/mlb/stream.m3u8?teamId=158

#EXTINF:-1 CUID="MLBTV.STL" channelID="MLBTV.STL" tvg-num="906" tvg-chno="906" tvc-guide-stationid="136230" tvg-logo="https://content.sportslogos.net/logos/54/72/full/3zhma0aeq17tktge1huh7yok5.png" group-title="MLBTV",Cardinals
http://192.168.12.41:5714/mlb/stream.m3u8?teamId=138

#EXTINF:-1 CUID="MLBTV.PIT" channelID="MLBTV.PIT" tvg-num="907" tvg-chno="907" tvc-guide-stationid="136226" tvg-logo="https://content.sportslogos.net/logos/54/71/full/1250_pittsburgh_pirates-primary-2014.png" group-title="MLBTV",Pirates
http://192.168.12.41:5714/mlb/stream.m3u8?teamId=134

#EXTINF:-1 CUID="MLBTV.CIN" channelID="MLBTV.CIN" tvg-num="908" tvg-chno="908" tvc-guide-stationid="136209" tvg-logo="https://content.sportslogos.net/logos/54/56/full/cincinnati_reds_logo_primary_20133208.png" group-title="MLBTV",Reds
http://192.168.12.41:5714/mlb/stream.m3u8?teamId=113

#EXTINF:-1 CUID="MLBTV.CHC" channelID="MLBTV.CHC" tvg-num="909" tvg-chno="909" tvc-guide-stationid="136205" tvg-logo="https://content.sportslogos.net/logos/54/54/full/chicago_cubs_logo_primary_19792956.png" group-title="MLBTV",Cubs
http://192.168.12.41:5714/mlb/stream.m3u8?teamId=112

#EXTINF:-1 CUID="MLBTV.LAD" channelID="MLBTV.LAD" tvg-num="910" tvg-chno="910" tvc-guide-stationid="136218" tvg-logo="https://content.sportslogos.net/logos/54/63/full/los_angeles_dodgers_logo_primary_20127886.png" group-title="MLBTV",Dodgers
http://192.168.12.41:5714/mlb/stream.m3u8?teamId=119

#EXTINF:-1 CUID="MLBTV.SD" channelID="MLBTV.SD" tvg-num="911" tvg-chno="911" tvc-guide-stationid="136227" tvg-logo="https://content.sportslogos.net/logos/54/73/full/7517_san_diego_padres-primary-2020.png" group-title="MLBTV",Padres
http://192.168.12.41:5714/mlb/stream.m3u8?teamId=135

#EXTINF:-1 CUID="MLBTV.AZ" channelID="MLBTV.AZ" tvg-num="912" tvg-chno="912" tvc-guide-stationid="136199" tvg-logo="https://content.sportslogos.net/logos/54/50/full/arizona_diamondbacks_logo_primary_20123733.png" group-title="MLBTV",Diamondbacks
http://192.168.12.41:5714/mlb/stream.m3u8?teamId=109

#EXTINF:-1 CUID="MLBTV.SF" channelID="MLBTV.SF" tvg-num="913" tvg-chno="913" tvc-guide-stationid="136229" tvg-logo="https://content.sportslogos.net/logos/54/74/full/san_francisco_giants_logo_primary_20002208.png" group-title="MLBTV",Giants
http://192.168.12.41:5714/mlb/stream.m3u8?teamId=137

#EXTINF:-1 CUID="MLBTV.COL" channelID="MLBTV.COL" tvg-num="914" tvg-chno="914" tvc-guide-stationid="136212" tvg-logo="https://content.sportslogos.net/logos/54/58/full/colorado_rockies_logo_primary_20171892.png" group-title="MLBTV",Rockies
http://192.168.12.41:5714/mlb/stream.m3u8?teamId=115

#EXTINF:-1 CUID="MLBTV.BAL" channelID="MLBTV.BAL" tvg-num="915" tvg-chno="915" tvc-guide-stationid="136202" tvg-logo="https://content.sportslogos.net/logos/53/52/full/baltimore_orioles_logo_primary_20195398.png" group-title="MLBTV",Orioles
http://192.168.12.41:5714/mlb/stream.m3u8?teamId=110

#EXTINF:-1 CUID="MLBTV.NYY" channelID="MLBTV.NYY" tvg-num="916" tvg-chno="916" tvc-guide-stationid="136223" tvg-logo="https://content.sportslogos.net/logos/53/68/full/1256.png" group-title="MLBTV",Yankees
http://192.168.12.41:5714/mlb/stream.m3u8?teamId=147

#EXTINF:-1 CUID="MLBTV.BOS" channelID="MLBTV.BOS" tvg-num="917" tvg-chno="917" tvc-guide-stationid="136204" tvg-logo="https://content.sportslogos.net/logos/53/53/full/boston_red_sox_logo_primary_20097510.png" group-title="MLBTV",Red Sox
http://192.168.12.41:5714/mlb/stream.m3u8?teamId=111

#EXTINF:-1 CUID="MLBTV.TB" channelID="MLBTV.TB" tvg-num="918" tvg-chno="918" tvc-guide-stationid="136231" tvg-logo="https://content.sportslogos.net/logos/53/2535/full/tampa_bay_rays_logo_primary_20196768.png" group-title="MLBTV",Rays
http://192.168.12.41:5714/mlb/stream.m3u8?teamId=139

#EXTINF:-1 CUID="MLBTV.TOR" channelID="MLBTV.TOR" tvg-num="919" tvg-chno="919" tvc-guide-stationid="136233" tvg-logo="https://content.sportslogos.net/logos/53/78/full/toronto_blue_jays_logo_primary_20208446.png" group-title="MLBTV",Blue Jays
http://192.168.12.41:5714/mlb/stream.m3u8?teamId=141

#EXTINF:-1 CUID="MLBTV.CLE" channelID="MLBTV.CLE" tvg-num="920" tvg-chno="920" tvc-guide-stationid="136210" tvg-logo="https://content.sportslogos.net/logos/53/6804/full/cleveland_guardians_logo_primary_2022_sportslogosnet-5538.png" group-title="MLBTV",Guardians
http://192.168.12.41:5714/mlb/stream.m3u8?teamId=114

#EXTINF:-1 CUID="MLBTV.MIN" channelID="MLBTV.MIN" tvg-num="921" tvg-chno="921" tvc-guide-stationid="136221" tvg-logo="https://content.sportslogos.net/logos/53/65/thumbs/peii986yf4l42v3aa3hy0ovlf.gif" group-title="MLBTV",Twins
http://192.168.12.41:5714/mlb/stream.m3u8?teamId=142

#EXTINF:-1 CUID="MLBTV.KC" channelID="MLBTV.KC" tvg-num="922" tvg-chno="922" tvc-guide-stationid="136215" tvg-logo="https://content.sportslogos.net/logos/53/62/full/kansas_city_royals_logo_primary_20198736.png" group-title="MLBTV",Royals
http://192.168.12.41:5714/mlb/stream.m3u8?teamId=118

#EXTINF:-1 CUID="MLBTV.DET" channelID="MLBTV.DET" tvg-num="923" tvg-chno="923" tvc-guide-stationid="136213" tvg-logo="https://content.sportslogos.net/logos/53/59/full/detroit_tigers_logo_primary_20162109.png" group-title="MLBTV",Tigers
http://192.168.12.41:5714/mlb/stream.m3u8?teamId=116

#EXTINF:-1 CUID="MLBTV.CWS" channelID="MLBTV.CWS" tvg-num="924" tvg-chno="924" tvc-guide-stationid="136206" tvg-logo="https://content.sportslogos.net/logos/53/55/full/5394_chicago_white_sox-primary-1936.png" group-title="MLBTV",White Sox
http://192.168.12.41:5714/mlb/stream.m3u8?teamId=145

#EXTINF:-1 CUID="MLBTV.SEA" channelID="MLBTV.SEA" tvg-num="925" tvg-chno="925" tvc-guide-stationid="136228" tvg-logo="https://content.sportslogos.net/logos/53/75/full/seattle_mariners_logo_primary_19933809.png" group-title="MLBTV",Mariners
http://192.168.12.41:5714/mlb/stream.m3u8?teamId=136

#EXTINF:-1 CUID="MLBTV.HOU" channelID="MLBTV.HOU" tvg-num="926" tvg-chno="926" tvc-guide-stationid="136214" tvg-logo="https://content.sportslogos.net/logos/53/4929/full/houston_astros_logo_primary_20137038.png" group-title="MLBTV",Astros
http://192.168.12.41:5714/mlb/stream.m3u8?teamId=117

#EXTINF:-1 CUID="MLBTV.TEX" channelID="MLBTV.TEX" tvg-num="927" tvg-chno="927" tvc-guide-stationid="136232" tvg-logo="https://content.sportslogos.net/logos/53/77/full/ajfeh4oqeealq37er15r3673h.png" group-title="MLBTV",Rangers
http://192.168.12.41:5714/mlb/stream.m3u8?teamId=140

#EXTINF:-1 CUID="MLBTV.LAA" channelID="MLBTV.LAA" tvg-num="928" tvg-chno="928" tvc-guide-stationid="136216" tvg-logo="https://content.sportslogos.net/logos/53/6521/full/4389_los_angeles_angels-primary-2016.png" group-title="MLBTV",Angels
http://192.168.12.41:5714/mlb/stream.m3u8?teamId=108

#EXTINF:-1 CUID="MLBTV.OAK" channelID="MLBTV.OAK" tvg-num="929" tvg-chno="929" tvc-guide-stationid="136224" tvg-logo="https://content.sportslogos.net/logos/53/69/full/6xk2lpc36146pbg2kydf13e50.png" group-title="MLBTV",A's
http://192.168.12.41:5714/mlb/stream.m3u8?teamId=133

Including @crackers8199 @m0ngr31 for visibility

4 Likes

i've used mlbserver in the past to watch games that i forgot to record...it was a great piece of work and tony is a great dev. i'm still trying to find the time to fix the channels container, but in the meanwhile i highly endorse anything tony has done if you want a solution while i'm working through things.

3 Likes

The latest version of the mlbserver has a “Team Live Streams” menu that opens a video player by team Id.

As an example:

http://x.x.x.x:5714/mlb/embed.html?teamId=109
is the Diamondbacks feed.

Substituting “stream.m3u8” for “embed.html” gives you an m3u link to create a custom channel in CDVR.

3 Likes

I gave that a try and channels will play the stream but it appears that it starts from the beginning and not live. I tested with the Tigers feed and I get "Stay Tuned: The Event Will Begin Shortly" even though the game is in the bottom of the 2nd inning. I tried using some of the url arguments like for viewing in the browser but they don't seem to work.
This what i tried:
http://192.168.12.41:5714/mlb/stream.m3u8?teamId=109&type=video&start=live&skip=none

Edit this stopped working for me for some reason Channels gives me this error

Failed to start stream for ch923: M3U: Could not parse playlist from 192.168.12.41:5714: Can't detect playlist type
2024/07/22 19:34:27.275900 [HLS] Couldn't generate stream playlist for ch923-dANY-ip192.168.254.228: M3U: Could not parse playlist from 192.168.12.41:5714: Can't detect playlist type
2024/07/22 19:34:27.276048 [HLS] Stopping transcoder session ch923-dANY-ip192.168.254.228 (out=0s finished=false first_seq=0 last_seq=-1)
2 Likes

I’m not having any issue with starting over at the beginning when relaunching the channel for St. Louis game. Here is my text in custom channel

#EXTM3U
#EXTINF:-1 channel-id=“STLC" channel-number="60" tvg-logo=“https://vignette.wikia.nocookie.net/prosportsteams/images/9/92/St._Louis_Cardinals.jpg/revision/latest?cb=20120825200804” ,tvg-name="STLC",CARDINALS
http://192.168.1.202:5714/mlb/stream.m3u8?teamId=138

1 Like

I’m just assigning the guide data from crackers mlb container to it and it’s picking up my recording pass with the updated channel number.

Now its all broken for me...
Trying to do apples to apples same as you:

#EXTINF:-1 CUID="MLBTV.STL" channelID="MLBTV.STL" tvg-num="906" tvg-chno="906" tvc-guide-stationid="136230" tvg-logo="https://content.sportslogos.net/logos/54/72/full/3zhma0aeq17tktge1huh7yok5.png" group-title="MLBTV",Cardinals
http://192.168.12.41:5714/mlb/sream.m3u8?teamId=138

gives me:

Failed to start stream for ch923: M3U: Could not parse playlist from 192.168.12.41:5714: Can't detect playlist type

Not sure if that’s exact copy of your url but check spelling for “stream”. You have “sream” in text above.

That worked. Now...we're back!!

OMG... sorry that was an ID10T error on my side

This is why I use Notepad++ to make my edits to my m3us. Copy, paste, and replacing a few lines is easy :rofl::joy:

3 Likes

Super super thank you to @slampman for the stack and @TJN for for the url.

You are welcome. I just edited my original post with my m3u containing gracenote id's as well as logos :slight_smile:

2 Likes

Wow, thank you all so much, working great for me. I love this community so much!

1 Like

If you were having any playback issues, you can try the latest version too (2024.7.23.4) -- I had to tweak the headers to successfully play the streams in VLC, so that might have been affecting other clients too.

1 Like

I can confirm this works properly when passed to Emby.

2 Likes

Thanks for showing me that repo, I was able to EPlusTV updated with the new auth

1 Like

Thanks All! It is working for me using slampman's setup and Tony's programming skills.

1 Like

EPG seems not to work

Try my gracenote ids they work using fubo's guide data.