(2022-08-08, 20:15)alberto1998 Wrote: @mardukL
I think I have not quite understood how to use it.
I need it to hide the title of the TV episodes not yet seen, (to avoid spoilers).
So i use it with skin confluence, in the library section of kodi> tv shows
(The "hide already seen" indicator is disabled and I don't use it)
In this piece of code:
<include name="MediaListView4">
...
<control type="label">
<left>10</left>
<top>395</top>
<width>400</width>
<height>30</height>
<font>font24_title</font>
<textcolor>white</textcolor>
<shadowcolor>black</shadowcolor>
<align>left</align>
<aligny>center</aligny>
<label>$INFO[ListItem.Label]</label>
<visible>!Control.IsVisible(50) + !Control.HasFocus(499) + [true | System.Setting(hidewatched)]</visible> (?)
</control>
How can i use the item you provided me with?
Thanks for your help
some examples - choose one , and test (may wished use case is covered)
a) no title based on watchedoverlay icon
<value condition="[container.content(episodes) | string.isequal(listitem,episode)] + String.IsEqual(ListItem.Overlay,OverlayUnWatched.png)">$INFO[ListItem.Season,s:,]$INFO[ListItem.Episode, | e:,]</value>
b) no title if either NEVER watched - just good if you wanna rely just on playcount
<value condition="[container.content(episodes) | string.isequal(listitem.dbtype,episode)] + Integer.IsEqual(ListItem.PlayCount,0)">$INFO[ListItem.Season,s:,]$INFO[ListItem.Episode, | e:,]</value>
c) based just on progress is maybe to viable thing you looking for, watched less than 10 percent
<value condition="[container.content(episodes) | string.isequal(listitem.dbtype,episode)] + Integer.IsLess(ListItem.Progress,10)">$INFO[ListItem.Season,s:,]$INFO[ListItem.Episode, | e:,]</value>
d) based on global kodi setting setting "dont show plot " for unwatched item - listitem.plot will return the
localized string id msgctxt "#20370" than which is msgid "* Hidden to prevent spoilers *"
<value condition="[container.content(episodes) | string.isequal(listitem.dbtype,episode)] + String.IsEqual(ListItem.Plot, $LOCALICE[20370])">$INFO[ListItem.Season,s:,]$INFO[ListItem.Episode, | e:,]</value>
xml:
<control type="label">
<left>10</left>
<top>395</top>
<width>400</width>
<height>30</height>
<font>font24_title</font>
<textcolor>white</textcolor>
<shadowcolor>black</shadowcolor>
<align>left</align>
<aligny>center</aligny>
<label>$VAR[i_try_explain_via_variable]</label>
<visible>!Control.IsVisible(50) + !Control.HasFocus(499)</visible>
</control>
<variable name="i_try_explain_via_variable">
<value condition="[container.content(episodes) | string.isequal(listitem.dbtype,episode)] + String.IsEqual(ListItem.Plot, $LOCALICE[20370])">$INFO[ListItem.Season,s:,]$INFO[ListItem.Episode, | e:,] or whatever should be used</value>
<value>$INFO[ListItem.Label]</value>
</variable>