Site
Home / Forum / Developers / MLB livescores

MLB livescores


Posted: 15 Jun 2022 01:04
whsmacon
Posts: 2
Joined: 2022-06-15

Am I missing something? The API returns values but the games are most definitely not updated 'live'. I have a valid API key via patreon and can get the full season's slate of games but the live scoring isn't quite there.

Posted: 15 Jun 2022 10:38
curswine
Posts: 863
Joined: 2020-06-17

I'd look into another service if that's all you're using it for, as of right now the livescore for MLB is broken, and I don't know how much is being done to fix it.

If a match is played across 00:00 UTC then there is a good chance that the livescore will fail or not work at all.

I've checked through the scores and updated all the ones that didn't register in last night's games, and everything is accurate in that area.

Posted: 15 Jun 2022 14:00
whsmacon
Posts: 2
Joined: 2022-06-15

Thanks for validating what I was seeing. I did end up going with another service last night. Hate it because I like the result structure of this one but it is what it is.

Posted: 16 Jun 2022 13:25

zag
Posts: 3,311
Joined: 2020-03-23

Hmm I need to check this you are right, it _should_ work but something probably to do with timezones has messed it up.

Posted: 20 Jun 2022 21:39

zag
Posts: 3,311
Joined: 2020-03-23

Checked for a few hours and working perfectly as far as I can tell, havent checked late at night yet though.

Posted: 21 Jun 2022 10:34
curswine
Posts: 863
Joined: 2020-06-17

Last night appears to have worked fine.

Could you check if a similar problem exists for NHL? The game last night started at 00:00UTC and didn't pull through a score.

Posted: 27 Jun 2022 12:53
curswine
Posts: 863
Joined: 2020-06-17

https://www.thesportsdb.com/event/1547757 showed 0-0 as the score, it was 2-2 before going into extra innings and finishing 5-3.

Still a problem with the scores somewhere.

Edit: Couple of other games were missing runs too.

Posted: 29 Jun 2022 11:30
curswine
Posts: 863
Joined: 2020-06-17

All games that started between 23:00 and 00:00UTC last night didn't have scores pulled through.

Posted: 28 Jul 2022 12:07
curswine
Posts: 863
Joined: 2020-06-17

Another outage last night, 5 games with incorrect scores, all for matches going past 00:00UTC.

zag
Posted: 02 Aug 2022 20:24

zag
Posts: 3,311
Joined: 2020-03-23

thanks, I know what the issue is, just need to look at timezones on the api I think.

Posted: 03 Aug 2022 20:49

zag
Posts: 3,311
Joined: 2020-03-23

I've put in a fix, let me know if there is any difference as its hard for me to test.

Baseball livescore should now use the 'New York' timezone.

Posted: 07 Aug 2022 21:12

zag
Posts: 3,311
Joined: 2020-03-23

Fix is now live

espinalk212
Posted: 10 Aug 2022 01:34
cardinaldiehard25
Posts: 162
Joined: 2021-05-22

I've put in a fix, let me know if there is any difference as its hard for me to test.

Baseball livescore should now use the 'New York' timezone.


I can see that it is using the eastern time zone now for MLB games. There are 9 games currently playing right now and none are in live scores. It is 9:30 pm eastern right now and the live score is pulling games for 8/10 instead of “today” which is 8/9.

Posted: 13 Aug 2022 08:22
curswine
Posts: 863
Joined: 2020-06-17

No MLB games had their scores pulled through last night, even the games that did not cross 00:00UTC.

Edit (14/08): Today wasn't much better, only two matches had scores, the rest had to be manually input.

Posted: 17 Aug 2022 12:34

zag
Posts: 3,311
Joined: 2020-03-23

Damn seems my fix made it worse I will investigate.

Posted: 19 Aug 2022 11:05
curswine
Posts: 863
Joined: 2020-06-17

Looks like last night the scores stopped working completely at 00:00 BST, there was one game https://www.thesportsdb.com/event/1548400 past that time which didn't have any score come through.

Posted: 22 Aug 2022 10:43
curswine
Posts: 863
Joined: 2020-06-17

Same problem seems to be happening to NFL scores too.

Posted: 25 Aug 2022 11:17

zag
Posts: 3,311
Joined: 2020-03-23

I've put in a new fix for MLB baseball. Basically just setting the date to -4hrs.

I wonder what will happen now, but hard to test.

Posted: 26 Aug 2022 01:40
cardinaldiehard25
Posts: 162
Joined: 2021-05-22

I've put in a new fix for MLB baseball. Basically just setting the date to -4hrs.

I wonder what will happen now, but hard to test.


Games that start before midnight UTC are now functioning properly and are continuing to track the score even after midnight.

Games that start after midnight UTC are not showing up on live scores until after around 3:00 am UTC it seems like.

zag
Posted: 26 Aug 2022 11:43
curswine
Posts: 863
Joined: 2020-06-17

Sad to report that a few of the scores must be wrong as my excel table is not lining up with MLB,com, It looks like its only one game for 8 teams, but I'm unable to find which that is right now

The affected teams are:
- Cleveland Guardians
- Kansas City Royals
- New York Mets
- Washington Nationals
- St Louis Cardinals
- Milwaukee Brewers
- Chicago Cubs
- Pittsburgh Pirates

Posted: 26 Aug 2022 18:23

zag
Posts: 3,311
Joined: 2020-03-23

I've put in a new fix for MLB baseball. Basically just setting the date to -4hrs.

I wonder what will happen now, but hard to test.

Games that start before midnight UTC are now functioning properly and are continuing to track the score even after midnight.

Games that start after midnight UTC are not showing up on live scores until after around 3:00 am UTC it seems like.


Thanks, i've tweaked it a bit now. Hopefully better.

cardinaldiehard25
Posted: 26 Aug 2022 18:25

zag
Posts: 3,311
Joined: 2020-03-23

Sad to report that a few of the scores must be wrong as my excel table is not lining up with MLB,com, It looks like its only one game for 8 teams, but I'm unable to find which that is right now

The affected teams are:
- Cleveland Guardians
- Kansas City Royals
- New York Mets
- Washington Nationals
- St Louis Cardinals
- Milwaukee Brewers
- Chicago Cubs
- Pittsburgh Pirates


I hate this sport lol. It might be the "double header" days when the teams play twice in a day. The system isnt setup for that as it would cause a dupe. They can still be added manually though.

Could also be something else but.... so.... many....games....

Posted: 27 Aug 2022 12:50
curswine
Posts: 863
Joined: 2020-06-17

From what I've seen double header days work as well as any other game.

No games without results last night, but a lot with incorrect scores where it must've stopped working at a certain time, these were for the games that started around 23:00UTC

Posted: 28 Aug 2022 10:40
curswine
Posts: 863
Joined: 2020-06-17

No problems with MLB last night, but worryingly some NFL games aren't having their scores pulled through, hopefully just because its pre-season.

Are NCAA scores auto-imported? If so then they haven't pulled through either.

Posted: 29 Aug 2022 21:35

zag
Posts: 3,311
Joined: 2020-03-23

No problems with MLB last night, but worryingly some NFL games aren't having their scores pulled through, hopefully just because its pre-season.

Are NCAA scores auto-imported? If so then they haven't pulled through either.


NCAA football not supported sadly. NCAA basketball is though.

I'll keep an eye on NFL for the start of the season.


Who is Online?

In total there are 68 users online :: 3 registered, 0 hidden and 65 guests (based on users active over the past 5 minutes) Most users ever online was 424 on Fri Nov 10, 2017 9:02 pm

About Us

Discussion forum for TheSportsDB.com site and related topics

Rules

- Be Polite
- Respect other users
- Always post log files with issues
- Try to be helpful
- No Piracy discussion

Showing 0 to 25 (Total: 33)