2019-08-18, 03:40
(2019-08-18, 02:34)melons2 Wrote:The code above works. Here is what to do.(2019-08-18, 00:03)shedrock Wrote: @melons2 and others.I really like that you are trying to help, but I got a similar result that I got with latts.
If you guys are looking for a solution to the stats for Music, Movies and Music Videos, then here is the code that I modified. This can be pasted over the existing code in the "IncludesVariables.xml" file. It can be found right under:
BACKUP YOUR FILE 1ST
Note: The language file (addon) I have installed for this is:resource.language.en_usas melons2 made reference to in an earlier post. This code is consistent with the rest of the skin so far. I also fixed the one for TV Shows, but for some reason or the other I had to add my own strings to the language file, but I will sort that out.php:<variable name="value_librarystatus">
php:<value condition="String.Contains(Container(9000).ListItem.Property(id),movie)">[color=$INFO[Skin.String(colorheader)]]$LOCALIZE[20342]:[/color] $INFO[Window(0).Property(Movies.Count)][color=80FFFFFF] | [/color][color=$INFO[Skin.String(colorheader)]]$LOCALIZE[16102]:[/color] $INFO[Window(0).Property(Movies.Watched)][color=80FFFFFF] | [/color][color=$INFO[Skin.String(colorheader)]]$LOCALIZE[16101]:[/color] $INFO[Window(0).Property(Movies.UnWatched)]</value>
<value condition="String.Contains(Container(9000).ListItem.Property(id),concert)">[color=$INFO[Skin.String(colorheader)]]$LOCALIZE[20389]:[/color] $INFO[Window(0).Property(MusicVideos.Count)][color=80FFFFFF] | [/color]$INFO[Window(0).Property(Music Videos.Count), -$LOCALIZE[20360]][color=$INFO[Skin.String(colorheader)]]$LOCALIZE[16101]:[/color] $INFO[Window(0).Property(MusicVideos.UnWatched)]</value>
<value condition="String.Contains(Container(9000).ListItem.Property(id),music)">[color=$INFO[Skin.String(colorheader)]]$LOCALIZE[133]:[/color] $INFO[Window(0).Property(Music.ArtistsCount),][color=80FFFFFF] | [/color][color=$INFO[Skin.String(colorheader)]]$LOCALIZE[132]:[/color] $INFO[Window(0).Property(Music.AlbumsCount)][color=80FFFFFF] | [/color][color=$INFO[Skin.String(colorheader)]]$LOCALIZE[182]:[/color] $INFO[Window(0).Property(Music.SongsCount)]</value>
Cheers!
Shedrock
Yes, I installed the resource addon.
It didn't work in any category you coded for and showed up looking like it did in my two pics above.
Thanks for trying Shedrock
Replace color=$INFO with COLOR=$INFO, color=80FFFFFF with COLOR=80FFFFFF, and [/color] to [/COLOR]. The color has to be in uppercase. Make sure to leave colorheader in lowecase. It will work for sure.
Let me know if it works. If you can't figure it out, then let me know and I will post a zip file for you to download with the code in it.
Shedrock