2023-05-10, 20:11
So, hoping someone can't help me with this. It is driving me bonkers. I have made a duplicate of the Estuary skin to practice modding. Very simply, I'm trying to print the value of Custom Video Library Tags for movie titles on various windows using the InfoLabel ListItem.Tag. Just about every other ListItem label prints the expected value (Plot, Tagline, AudioCodec, Year, Genre, Etc.). But for some reason I cannot get ListItem.Tag to work on any screen other than the Video Info Screen (DialogVideoInfo.xml).
Using the Includes.xml file, modifying this section (Line 6-13) works for the MediaFlags when shown on the Video Info Screen but not on the Home or Movie Library screens.
Not Working on Home Screen
Works on Video Info Screen
The Video Info screen (controlled by DialogVideoInfo.xml) shows the Custom Tag exists in Kodi for the movie and that the code in Includes.xml displays the "ATMOS" box in the media flags at the bottom. But on the Home Screen that Media Flag won't show.
Just for the sake of it, this code shows that trying to place that Custom Tag on Movie Library window also doesn't work but will work when changing the ListItem to something else like Year. (file is MyVideoNav.xml)
Changing the code to ListItem.Tag the value won't show. I hardcoded the visible field to "TRUE" just to show that "Tags:" will show but not the value that should be displayed by ListItem.Tag.
I really hope someone knows what I'm missing here. Thanks for the help.
Using the Includes.xml file, modifying this section (Line 6-13) works for the MediaFlags when shown on the Video Info Screen but not on the Home or Movie Library screens.
Includes:<include content="MediaFlag">
<param name="texture" value="$INFO[$PARAM[infolabel_prefix]ListItem.AudioCodec,flags/audiocodec/,.png]" />
<param name="visible" value="!String.IsEmpty($PARAM[infolabel_prefix]ListItem.AudioCodec)" />
</include>
<include content="MediaFlag">
<param name="texture" value="flags/audiocodec/atmos.png" />
<param name="visible" value="String.IsEqual($PARAM[infolabel_prefix]ListItem.Tag,ATMOS)" />
</include>
<include content="MediaFlag">
<param name="texture" value="flags/audiocodec/dtsx.png" />
<param name="visible" value="String.IsEqual($PARAM[infolabel_prefix]ListItem.Tag,DTS:X)" />
</include>
<include content="MediaFlag">
<param name="texture" value="$INFO[$PARAM[infolabel_prefix]ListItem.AudioChannels,flags/audiochannel/,.png]" />
<param name="visible" value="!String.IsEmpty($PARAM[infolabel_prefix]ListItem.AudioChannels)" />
</include>
Not Working on Home Screen
Works on Video Info Screen
The Video Info screen (controlled by DialogVideoInfo.xml) shows the Custom Tag exists in Kodi for the movie and that the code in Includes.xml displays the "ATMOS" box in the media flags at the bottom. But on the Home Screen that Media Flag won't show.
Just for the sake of it, this code shows that trying to place that Custom Tag on Movie Library window also doesn't work but will work when changing the ListItem to something else like Year. (file is MyVideoNav.xml)
MyVideoNav_Year:<include content="InfoDialogMetadata">
<param name="control_id" value="158" />
<param name="label" value="[COLOR button_focus]$LOCALIZE[20459]: [/COLOR]$INFO[ListItem.Year]" />
<param name="altlabel" value="$LOCALIZE[20459]: $INFO[ListItem.Year]" />
<param name="visible" value="!String.IsEmpty(ListItem.Year)" />
</include>
Changing the code to ListItem.Tag the value won't show. I hardcoded the visible field to "TRUE" just to show that "Tags:" will show but not the value that should be displayed by ListItem.Tag.
MyVideoNav_Tag:<include content="InfoDialogMetadata">
<param name="control_id" value="158" />
<param name="label" value="[COLOR button_focus]$LOCALIZE[20459]: [/COLOR]$INFO[ListItem.Tag]" />
<param name="altlabel" value="$LOCALIZE[20459]: $INFO[ListItem.Tag]" />
<param name="visible" value="TRUE" />
</include>
I really hope someone knows what I'm missing here. Thanks for the help.