Kodi Community Forum
Information Info label for total albums by artist - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Music Support (https://forum.kodi.tv/forumdisplay.php?fid=263)
+--- Thread: Information Info label for total albums by artist (/showthread.php?tid=377817)



Info label for total albums by artist - Dumyat - 2024-06-04

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


RE: Info label for total albums by artist - scott967 - 2024-06-05

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.
.


RE: Info label for total albums by artist - Dumyat - 2024-06-06

@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


RE: Info label for total albums by artist - scott967 - 2024-06-07

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.
.


RE: Info label for total albums by artist - Fuchs2468 - 2024-06-07

Since your skin also uses the "script.skin.helper.service" you have a list here.

https://github.com/kodi-community-addons/script.skin.helper.service/wiki/Listitem-Properties---Music-items

Your desired function is also there.

"$INFO[Window(Home).Property(SkinHelper.ListItem.AlbumCount)]"


RE: Info label for total albums by artist - Dumyat - 2024-06-09

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


This forum uses Lukasz Tkacz MyBB addons.