I was able to get my local copy of SDT to show scores again by making
the following changes in the sub gotCBB section of the code. It
probably could be cleaned up more, but this should work for now.
From:
Code:
--------------------
next unless $game_div->look_down( "_tag", "div", "id", qr{gameHeader} );
my @outcome = $game_div->look_down( "_tag", "li", "id", qr{statusLine1} );
my @qtr = $game_div->look_down( "_tag", "span", "id", qr{statusLine2Left}
);
my @clock = $game_div->look_down( "_tag", "span", "id",
qr{statusLine2Right} );
my @teams = $game_div->look_down( "_tag", "div", "id", qr{(h|a)TeamName} );
my @scores = $game_div->look_down( "_tag", "span", "id",
qr{(home|away)HeaderScore} );
my( $outcome_txt ) = $outcome[ 0 ]->content_list;
my( $qtr_txt ) = $qtr[ 0 ]->content_list;
my( $clock_time ) = $clock[ 0 ]->content_list;
my( $away_team ) = $teams[ 0 ]->as_text;
my( $home_team ) = $teams[ 1 ]->as_text;
my( $away_score ) = $scores[ 0 ]->content_list;
my( $home_score ) = $scores[ 1 ]->content_list;
--------------------
To:
Code:
--------------------
next unless $game_div->look_down( "_tag", "div", "class", "game-header" );
my @outcome = $game_div->look_down( "_tag", "div", "id", qr{statusLine2Left}
);
my @qtr = $game_div->look_down( "_tag", "p", "id", qr{statusLine1} );
my @clock = $game_div->look_down( "_tag", "p", "id", qr{statusLine1} );
my @teams = $game_div->look_down( "_tag", "span", "id", qr{(h|a)TeamName} );
my @scores = $game_div->look_down( "_tag", "li", "id",
qr{(home|away)HeaderScore} );
my( $outcome_txt ) = $outcome[ 0 ]->as_text;
my( $qtr_txt ) = $qtr[ 0 ]->content_list;
my( $clock_time ) = $clock[ 0 ]->content_list;
my( $away_team ) = $teams[ 0 ]->as_text;
my( $home_team ) = $teams[ 1 ]->as_text;
my( $away_score ) = $scores[ 0 ]->content_list;
my( $home_score ) = $scores[ 1 ]->content_list;
--------------------
AND
From:
Code:
--------------------
if( $clock_time ne '' ) {
$clock_time = "$clock_time $qtr_txt";
--------------------
To:
Code:
--------------------
if( $clock_time ne '' ) {
$clock_time = "$clock_time";
--------------------
--
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