2012-05-22, 17:25
http://pastebin.com/k333yeDH
I had previously played with the standalone mlbviewer. This plugin is very cool (thanks!), but it didn't have game-specific highlights, just daily and team-specific ones. This patch adds three entries under Game Highlights for the last three days' worth of games. Clicking one gives a list of games, which further expands into a list of highlights for that game. It does what I want now but feel free to integrate however appropriate.
The only problem I've seen is that the URL for a game's highlights returns a 404 in the morning before games start. I wanted to catch and suppress this but "getRequest" doesn't throw it, it always pops up a message instead. I just left it this way for now instead of trying to change too much. It's only an issue when looking at "Today's Games" early in the day.
I had previously played with the standalone mlbviewer. This plugin is very cool (thanks!), but it didn't have game-specific highlights, just daily and team-specific ones. This patch adds three entries under Game Highlights for the last three days' worth of games. Clicking one gives a list of games, which further expands into a list of highlights for that game. It does what I want now but feel free to integrate however appropriate.
The only problem I've seen is that the URL for a game's highlights returns a 404 in the morning before games start. I wanted to catch and suppress this but "getRequest" doesn't throw it, it always pops up a message instead. I just left it this way for now instead of trying to change too much. It's only an issue when looking at "Today's Games" early in the day.