2016-04-22, 06:05
@eracknaphobia
Just noticed that the Recap/Condensed don't work for a finished game on the same day and I think in general the following json source could come in handy, instead of the in use currently (grid_ce.json)
There is also a potential to bring back short highlights from a completed game by getting the "game_pk" from the above main feed. E.g for the HOU@TEX game ("game_pk":"447092"), the following lists the player/game highlights available at the web page. These are short individual clips with descriptions etc which are available without subscription or accounts. I am not sure if this is different from the ones that we are calling as Recap/Condensed in the addon, which seem to not work on the day the game is finished.
"url" has the link to xml with the playable mp4/m3u8 for each "N" e.g for the first video "Fielder's RBI fielder's choice"
EDIT: Above highlights actually start populating as the game progresses and "total" continues to grow well after the game is over. Will be great if we can add this to the addon.
Just noticed that the Recap/Condensed don't work for a finished game on the same day and I think in general the following json source could come in handy, instead of the in use currently (grid_ce.json)
Code:
http://mlb.mlb.com/gdcross/components/game/mlb/year_2016/month_04/day_21/grid.json
Code:
Accept:application/json, text/javascript, */*; q=0.01
Referer:http://mlb.mlb.com/mediacenter/index.jsp?c_id=mlb
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36
X-Requested-With:XMLHttpRequest
There is also a potential to bring back short highlights from a completed game by getting the "game_pk" from the above main feed. E.g for the HOU@TEX game ("game_pk":"447092"), the following lists the player/game highlights available at the web page. These are short individual clips with descriptions etc which are available without subscription or accounts. I am not sure if this is different from the ones that we are calling as Recap/Condensed in the addon, which seem to not work on the day the game is finished.
Code:
http://mlb.mlb.com/ws/search/MediaSearchService?start=0&site=mlb&hitsPerPage=12&hitsPerSite=10&type=json&c_id=mlb&src=vpp&sort=desc&sort_type=date&game=447092
Code:
Accept:application/json, text/javascript, */*; q=0.01
Accept-Encoding:gzip, deflate, sdch
Accept-Language:en-US,en;q=0.8
Connection:keep-alive
Host:mlb.mlb.com
Referer:http://mlb.mlb.com/search/media.jsp?game_pk=447092
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36
X-Requested-With:XMLHttpRequest
"url" has the link to xml with the playable mp4/m3u8 for each "N" e.g for the first video "Fielder's RBI fielder's choice"
Code:
http://mlb.mlb.com/gen/multimedia/detail/8/8/3/610231883.xml
EDIT: Above highlights actually start populating as the game progresses and "total" continues to grow well after the game is over. Will be great if we can add this to the addon.