access the 'tags' in skins
#1
Since Kodi 12 it's possible to add tags to videos,music.... Is it possible to use this tags in conditions in skins?

Example:
I tag a video with the tag 'marvel' In the skin i like to display an image for the marvel universe. So i need something like this: Listitem.HasTag('marvel')
I have searched the skinning FAQ in the wiki but i can't find something to access the tags.

So does anybody know how to access the tags?
Reply
#2
You can use ListItem.Tag. Its only for videos and only works on v17 and up.
Code:
String.Contains(ListItem.Tag,marvel)
Reply
#3
Thank you.
Reply
#4
Hmm. Maybe i'm wrong but it's not working for me.

I use the latest nightly Kodi 17. I put a label in a view and use <label>$INFO[ListItem.Tag]</label> to show the tag of a video in the library.

I'm pretty sure the movie is tagged. The table 'tag' in the Kodi database have one entry tag_id=1 name= testtag
The table 'tag_link' have one entry tag_id=1 media_id=533 media_type=movie

Media id 533 is the movie in the library. In the file view i go to the movie with id 533 but the label is always void.
Am i doing something wrong or is the .Tag not working?
Reply

Logout Mark Read Team Forum Stats Members Help
access the 'tags' in skins0