Here's a tweak to add to the previous changes. This tweak will blank
the zero scores on future games to clean up the display.
Change the following code in the sub gotCBB section.
From:
Code:
--------------------
#Check to see if home score is a numeric, otherwise there isn't a score yet
and set to blanks
if( $home_score =~ /^\d/ ) {
$sportsData{'College Basketball'}{$home_team.$clock_time}{'homeScore'}
= $home_score;
$sportsData{'College Basketball'}{$home_team.$clock_time}{'awayScore'}
= $away_score;
}
else {
$sportsData{'College Basketball'}{$home_team.$clock_time}{'homeScore'}
= '';
$sportsData{'College Basketball'}{$home_team.$clock_time}{'awayScore'}
= '';
$home_score = '';
$away_score = '';
}
--------------------
To:
Code:
--------------------
#Check to see if clock reflects future game time, if so there isn't a score
yet and set to blanks
if( $clock_time =~ /ET/ ) {
$sportsData{'College Basketball'}{$home_team.$clock_time}{'homeScore'}
= '';
$sportsData{'College Basketball'}{$home_team.$clock_time}{'awayScore'}
= '';
$home_score = '';
$away_score = '';
}
else {
$sportsData{'College Basketball'}{$home_team.$clock_time}{'homeScore'}
= $home_score;
$sportsData{'College Basketball'}{$home_team.$clock_time}{'awayScore'}
= $away_score;
}
--------------------
Cheers... Don
--
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