BoomX2 wrote: 
> This release adds sports scores for NBA and College Basketball to the
> weather.com version of SDT.  

Okay so the college basketball season has officially started and a
couple of tweaks are needed to properly decode the JSON file for scores.
I'll post a release for the weather.com version of SDT tomorrow that
has a couple of other unrelated changes.  In the mean time if you want
to patch your local copy change the following 2 lines in the gotcbb
subroutine of plugin.pm to improve the function of college basketball 
scores.

Comment out this line by placing a # at the beginning of the line as
shown here.  

Code:
--------------------
    #   $CBB_json =~ s/\,\s*\,/\,\n/g; # Remove malformed JSON text on days 
with a large number of games
  
--------------------


Change this line as shown.

Code:
--------------------
    
  From:
  if ($gameStat eq "In-Progress") {
  
  To:
  if (($gameStat eq "In-Progress") or ($gameStat eq "live")) {
  
--------------------


------------------------------------------------------------------------
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
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to