Information Info label for total albums by artist
#1
I was surfing through the info labels last night and was surprised to see that no ListItem labels seem to exist for the total amount of albums by artist. Is that correct, or did I maybe miss it somewhere? I did check both Wiki and the Kodi documentation.
Working on the basis that there is no label currently, can anybody suggest any tricks or hacks that might enable me to show this info on a skin view? Any feedback would be much appreciated.
Cheers
Reply
#2
I think you should be able to create an off-screen container with dynamic content filtered as albums for artist and use Container(id).NumItems to get the number of albums for focused artist when viewing list of artists.

scott s.
.
Reply
#3
@scott967
Yup, think I understand the concept.
Will probably need some experimenting on my part though..... Wink
Ironically, the thought only occurred to me when I was surfing down my Music Vids list by artist and saw the number of appearances is given. 
Thanks for getting back to me.
Cheers
Reply
#4
If you go to the development/skinning forum you might get some more ideas as the more complex addon skins tend to use features like that (though also often use a skin "helper" service addon as that tends to perform better).

scott s.
.
Reply
#5
Since your skin also uses the "script.skin.helper.service" you have a list here.

https://github.com/kodi-community-addons...usic-items

Your desired function is also there.

"$INFO[Window(Home).Property(SkinHelper.ListItem.AlbumCount)]"
Reply
#6
Thanks guys.
I will give the SHS function a try and see how well it performs for what I'm wanting to do.
@Fuchs2468 I actually downloaded your repo and installed the copy of the SHS you have included, as it is likely to be far more up-to-date than the copy I have been using for a long time now. However, I'm seeing a couple of issues that are un-related to this subject, so will make a new post directly in the SHS thread to see if you might be experiencing the same things.
Thanks again
Reply

Logout Mark Read Team Forum Stats Members Help
Info label for total albums by artist0