tedfroop;578796 Wrote:
> I think I found the culprit - NHL scores. When I turn them on all
> updates stop. The pre-season just started the other night and I had
> all the scores up. In the morning the previous nights scores were
> still displayed - a sure sign the server is hung up as it usually
> switches to the next days games sometime during the night. Restarted
> and could not get any weather data until I shut all NHL scores off.
> (Couldn't get any scores either) I just tried it again asking for
> scores for one team and that seems to kill it as well.
>
> As you will notice from the log, parsing never completed. I just
> tested again, with NHL scores on then off. With the scores on the data
> refresh never completes.
>
> From log file:
> Requesting Scores:
> [10-09-25 14:39:19.7187] Plugins::SuperDateTime::Plugin::gotWeather
> (3372) Error parsing weather details - precip amounts
> [10-09-25 14:39:22.9989] Slim::Networking::IO::Select::__ANON__ (146)
> Error: Select task failed calling
> Slim::Networking::Async::HTTP::_http_read_body: ;
> fh=Slim::Networking::Async::Socket::HTTP=GLOB(0xb8222d8)
>
> Not requesting scores:
> [10-09-25 14:40:33.1660] Plugins::SuperDateTime::Plugin::gotWeather
> (3372) Error parsing weather details - precip amounts
> [10-09-25 14:40:37.4947] Plugins::SuperDateTime::Plugin::doneDrawing
> (4297) Data refresh completed with errors.
Thanks for the effort narrowing it down to selection of NHL teams. I
was able to find the culprit in a change in the ESPN HTML. Change the
following line in the gotNHL sub of SDT to get it working. It is line
5176 in version 5.9.3.
From:
Code:
--------------------
my @teams = $game_div->look_down( "_tag", "a", "href", qr{clubhouse\?} );
--------------------
To:
Code:
--------------------
my @teams = $game_div->look_down( "_tag", "a", "href", qr{/nhl/team/_/name/}
);
--------------------
I have attached a text file that contains a replacement gotNHL sub that
includes this fix plus some error checking that Greg added to gotMLB
when he fixed it back in June.
Cheers,
Don
+-------------------------------------------------------------------+
|Filename: gotNHL.txt |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=10654|
+-------------------------------------------------------------------+
--
BoomX2
------------------------------------------------------------------------
BoomX2's Profile: http://forums.slimdevices.com/member.php?userid=33529
View this thread: http://forums.slimdevices.com/showthread.php?t=14327
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins