-
Notifications
You must be signed in to change notification settings - Fork 25
Can't select second game after suspended game resumed #23
Comments
I'll have to dig through the game data on that one. It's probably not marked as a double-header, so it would be selecting the first game it matches on. |
It's an odd situation. I just experienced the same thing with the resumed KC-Boston game on August 22nd. It looks strange on the MLB.TV site with two undistinguished links for the broadcast. The first link is for the resumption; the second is for the original (https://www.mlb.com/live-stream-games/2019/08/22). For me there is no need to list the original game as that will be available on the date it was started so just being able to access the resumption is all that is needed. Still, it happens so rarely that if you just called it a limitation of the software then I would understand. |
I just haven't looked into it yet. It probably needs to be handled as a special case since it sounds like there are two distinct sets of media links. |
I went looking at the json data for that game, and they are only providing the media links for the original game day, which is odd. ie there is no media data there for the resumed stream. I'll do more digging to see if I can find it. In the meantime, note to self, they identify these games with an extra resumedFrom field:
edit: It looks like the original game date contains media links for both portions. Should be able to do something to allow the selection of either feed. Maybe I will have some sort of info pointer back to the original game date, then you'd be able to select the feed based on the original game date. And the original game date has resumeDate field:
|
- Resumed games show up as their own feed, alongside the original feed, with a '-res' or '-resume' identifier, e.g. 'a-res' or 'away-resume'
I put in some basic support for this, and it seems to work okay. If you are setup to run from git maybe you could pull the latest and give it a go?
The two dates show up like this:
As you can see, the feeds show up from either date. To play the first part (you could actually just leave out the feed, since it will pick the away feed by default in this case):
And for the resumed part:
You can use either date. |
- Support suspended/resumed games (fixes Issue #23) - Now caching json requests, under the tmp mlbv directory - should not be noticeable, most pages are only cached for a few minutes - will be able to use this for supporting unit tests
Mets vs. Cubs resumed their suspended game today, the second game today cannot be selected. It just keeps trying to play the suspended game. I can't seem to find a selector that I can use to grab the other game stream.
The text was updated successfully, but these errors were encountered: