GoCubs;543792 Wrote:
>
> In this version I've also added league AND team logos. Sorry Erland as
> these additional optional 'logoURL', homeLogoURL, and awayLogoURL data
> points may break your existing logic. In this version the logoURLs are
> included for all SDT-supported sport leagues and team logos are
> supported for MLB. I'll add others as I have time. The external API
> for adding custom leagues/sports also supports optional logos.
>
The selsports command doesn't work because of the "logoURL" field, you
will have to do something like this to make sure it's skipped in the
teamCheck statements where it crashes currently due to non hash
values.
Code:
--------------------
for my $sport ( keys %sportsData ) {
for my $game ( keys %{ $sportsData{$sport} } ) {
if(!ref($game)) {
$selSportsData{$sport}{$game} = $sportsData{$sport}{$game};
next;
}
#Use dynamic var names instead?
if ($sport eq 'MLB' && (scalar @MLBteams >0)) {
--------------------
--
erland
Erland Isaksson
'My homepage' (http://erland.isaksson.info) (Install my plugins through
Extension Downloader)
(Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse,
Custom Scan, Custom Skip, Multi Library, Title Switcher and Database
Query plugins'
(http://wiki.erland.isaksson.info/index.php/Category:SlimServer))
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=77864
_______________________________________________
jive mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive