Steve Baumgarten Wrote: 
> Definitely looks like the MLB parsing needs a tweak. I had a quick look,
> and ouch, that's some job you have to do to parse the scoreboard page.
> Have you considered using something like HTML::Parser rather than
> attempting to pull apart the raw HTML yourself? It does seem a bit
> fragile as it is, and especially so because you're relying on the HTML
> to be broken into individual lines (i.e., that newlines will be
> included at logical intervals in the HTML source) that you then iterate
> over in your code. 
> 
> Just taking a quick look at the MLB scoreboard now, I see that all the
> relevant info is in a single, very long line. My guess is that this is
> what's confounding the parser. A quick fix might be to add newlines
> yourself, before iterating over each line -- that way you don't have to
> worry about epsn.com changing the way it cranks out HTML. (I think
> switching to HTML::Parser would be better overall, but obviously it
> would be a lot more work on your part, and I'm reluctant to suggest
> that given all the work you've already put in on this excellent plugin.
> It's always so easy to suggest extra work for other people to do, if you
> know what I mean.)
> 
Sorry for the slower than normal response.  I'm in the process of
moving and haven't had much free time to take a look.  I did notice the
other day that the Cubs game didn't appear so I assumed the HTML had
changed for the new season.

Steve is correct, the score data now appears to be coming in on one
single line.  Hopefully that's the only change.  I believe one of the
other sports (NFL?) was similar so I'll have to refresh myself in how I
handled it.

Believe it or not, SuperDateTime was my first Perl programming attempt
and I didn't expect it to become the monster it has.  Had I known I
probably would have organized it differently and explored HTML::Parser.
Right now I'm comfortable with how everything works and luckily so far
the HTML source hasn't changed that much/often.

I'll look into the code and post a fix when I can.

-Greg


-- 
GoCubs
------------------------------------------------------------------------
GoCubs's Profile: http://forums.slimdevices.com/member.php?userid=312
View this thread: http://forums.slimdevices.com/showthread.php?t=14327

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to