% if (isset("Action")) { if (Action == "UnqueMusicplaylist") { var ItemCount; var z; ItemCount = xbmcCommand("catalog","items"); for (z = 0; z < ItemCount; z = z + 1) { // dirty workaround, cause unque, + z won't work xbmcCommand("navigate", Action); xbmcCommand("catalog","unque"); } Action = "musicplaylist"; } xbmcCommand("navigate", Action); } if (isset("command")) { // execute a few commands before listing the contents if (command == "select") { xbmcCommand("catalog", "select," + item); } else if (command == "unque") { xbmcCommand("catalog", "unque," + item); } } var navigatorstate; var BannerClass; var InfoClass; var BackgroundClass; var ItemFileClass; navigatorstate = xbmcCommand("navigatorstate"); if (isset("DisplayConfiguration")) { BannerClass = "SiteBannerConfiguration"; InfoClass = "SiteInfoConfiguration"; BackgroundClass = "SiteBackgroundConfiguration"; } else if (isset("DisplayInfo")) { BannerClass = "SiteBannerConfiguration"; InfoClass = "SiteInfoConfiguration"; BackgroundClass = "SiteBackgroundConfiguration"; } else if (navigatorstate == "pictures") { BannerClass = "SiteBannerMyPictures"; InfoClass = "SiteInfoMyPictures"; BackgroundClass = "SiteBackgroundMyPictures"; ItemFileClass = "ItemFileMyPictures"; } else if (navigatorstate == "music") { BannerClass = "SiteBannerMyMusic"; InfoClass = "SiteInfoMyMusic"; BackgroundClass = "SiteBackgroundMyMusic"; ItemFileClass = "ItemFileMyMusic"; } else if (navigatorstate == "videos") { BannerClass = "SiteBannerMyVideos"; InfoClass = "SiteInfoMyVideos"; BackgroundClass = "SiteBackgroundMyVideos"; ItemFileClass = "ItemFileMyVideos"; } else if (navigatorstate == "musicplaylist") { BannerClass = "SiteBannerMusicPlaylist"; InfoClass = "SiteInfoMusicPlaylist"; BackgroundClass = "SiteBackgroundMusicPlaylist"; ItemFileClass = "ItemFileMusicPlaylist"; } else if (navigatorstate == "videoplaylist") { BannerClass = "SiteBannerVideoPlaylist"; InfoClass = "SiteInfoVideoPlaylist"; BackgroundClass = "SiteBackgroundVideoPlaylist"; ItemFileClass = "ItemFileVideoPlaylist"; } else { BannerClass = "SiteBannerNone"; InfoClass = "SiteInfoLogo"; BackgroundClass = "SiteBackgroundHome"; } %>