ericj;193027 Wrote:
> Greg:
> First, this is a wonderful screensaver. It adds a lot of value and
> fun to the SB.
>
> You had in 4.1 (I believe) days, suggested a way that would show
> yesterday scores for part of the day. It worked back then. The trick
> was the following edit:
>
> Change:
> my $url = 'http://sports.espn.go.com/mlb/scoreboard?date=' . $year .
> $mon . $mday;
>
> To:
> my $url = 'http://sports.espn.go.com/mlb/scoreboard';
>
> In 5.05 the equivalent cod is
>
> my $url = 'http://sports.espn.go.com/mlb/scoreboard?date=' .
> $lastRefresh;
>
> and my attempts to just delete the ?date and the .$lastRefresh simply
> broke tracking the scores.
>
> Any suggestions? I might lobby for making this a web configurable for
> those of us that dont' constantly live in front of our SB, or who live
> in other time zones.... Of course, I do understand that the
> configuration page is getting way complex now.
>
Hey Eric-
I changed some of that code to cover games that span past midnight. I
believe the code will now display yesterday's games (MLB/NBA/NHL) until
4 or 5am eastern. If you want to display them longer, just change this
line of code (line 3289 in 5.0.5):
Code:
--------------------
if ((($lastRefresh ne ($year . $mon . $mday)) && $hour >4) || $lastRefresh eq
'') { #5AM EST start refreshing a new day
--------------------
Change the hour >4 part to whatever you want. Keep in mind you'll only
see yesterday's games until that condition is met and the plugin has to
have been running "yesterday" for it to show "yesterdays" scores (ie
restarting today will only show today.
-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