如何在Kodi Estuary皮肤的MyVideoNav.xml中显示ListItem.Tag标签
I’ve run into this exact issue before when tweaking the Estuary skin—turns out the context of ListItem differs between DialogVideoInfo.xml and MyVideoNav.xml, which is why your tag variable is returning empty. Here’s how to resolve it:
Why ListItem.Tag isn’t working here
In DialogVideoInfo.xml, you’re viewing a single item’s full details, so ListItem.Tag directly pulls the tag data for that specific video. But in MyVideoNav.xml, you’re in a list view context, and the default ListItem object doesn’t expose the tag field by default here. Instead, tags are often stored as a property of the list item, or you need to reference the container’s list item explicitly.
Solutions to try
1. Use ListItem.Property(Tag) instead
Replace $INFO[ListItem.Tag] with $INFO[ListItem.Property(Tag)] in your textbox label. This targets the tag stored as an item property, which is the correct way to access it in list views:
<control type="textbox"> <left>30</left> <top>240</top> <width>525</width> <bottom>100</bottom> <visible>!ListItem.IsCollection</visible> <label>Tags: "$INFO[ListItem.Property(Tag)]"[CR][CR]$INFO[ListItem.Tagline,[I],[/I][CR][CR]]$INFO[ListItem.Plot][CR][CR]</label> <autoscroll delay="10000" time="3000" repeat="10000">Skin.HasSetting(autoscroll)</autoscroll> </control>
2. Explicitly reference the container's list item
If the first fix doesn’t work, try using Container.ListItem.Tag to directly pull from the active container’s selected item:
<label>Tags: "$INFO[Container.ListItem.Tag]"[CR][CR]$INFO[ListItem.Tagline,[I],[/I][CR][CR]]$INFO[ListItem.Plot][CR][CR]</label>
3. Verify available fields with Kodi's skin debugger
To confirm exactly what fields are accessible for your list item:
- Enable debug mode in Kodi: Go to Settings > System > Logging > Enable debug logging
- Press
Ctrl+Shift+D(on desktop) to open the skin debugging overlay - Navigate to your movie list, select an item with tags, and check the list of available
ListItemproperties/fields. Look for any field related to tags (it might be namedTag,tags, or something similar depending on your Kodi version).
Final Notes
If you’re still having issues, double-check that your movies actually have tags assigned in Kodi’s library—sometimes empty tags can be confused with missing field access. Also, ensure you’re using a compatible Kodi version (Estuary’s behavior can shift slightly between major releases).
内容的提问来源于stack exchange,提问作者simne7

