HOW-TO:Add UnWatchedEpisodes to TV Show posters in Estuary: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(Created page with "{{mininav| Skinning | Estuary }} __FORCETOC__ This tutorial will show how to add UnWatchedEpisodes (UWE) count to TV Show posters. Default only shows "Watched / Total...")
 
No edit summary
Line 33: Line 33:


== Show Watched/Total | UnWatchedEpisodes when W!=0 ==
== Show Watched/Total | UnWatchedEpisodes when W!=0 ==
Add this in control section above
<syntaxhighlight lang="xml">!String.IsEqual(ListItem.Property(WatchedEpisodes),"0")</syntaxhighlight>
== Show Watched/Total when W=0 ==
== Show Watched/Total when W=0 ==
== Hide eye image when all episodes are watched ==
Find this in ''View_54_InfoWall.xml''
<syntaxhighlight lang="xml">
<control type="group">
<visible>String.IsEqual(ListItem.DBtype,tvshow)
</syntaxhighlight>
 
Add this control section in the group
<syntaxhighlight lang="xml">
<control type="label">
<visible>String.IsEqual(ListItem.Property(WatchedEpisodes),"0")</visible>
<left>0</left>
<top>20</top>
<width>244</width>
<label>$INFO[ListItem.Property(WatchedEpisodes)]$INFO[ListItem.Property(TotalEpisodes), / ,]</label>
<font>font20_title</font>
<shadowcolor>text_shadow</shadowcolor>
<align>right</align>
</control>
</syntaxhighlight>
 
== Hide the eye image when all episodes are watched ==
In the above control ''group'' find this
<syntaxhighlight lang="xml">
<control type="image">
<left>254</left>
<top>23</top>
<width>24</width>
<height>24</height>
<texture>lists/played-total.png</texture>
</control>
</syntaxhighlight>
 
add this code in the control section to hide the eye:
<syntaxhighlight lang="xml"><visible>!String.IsEqual(ListItem.Property(UnWatchedEpisodes),"0")</visible></syntaxhighlight>

Revision as of 19:02, 2 June 2022

Home icon grey.png   ▶ Skinning ▶ Estuary ▶ HOW-TO:Add UnWatchedEpisodes to TV Show posters in Estuary


This tutorial will show how to add UnWatchedEpisodes (UWE) count to TV Show posters. Default only shows "Watched / Total". This will change the TV posters on the Home page (In Progress and Unwatched) and the TV Show views Poster, InfoWall and Wall.

This is achieved by editing View_54_InfoWall.xml (...\Kodi\addons\skin.estuary\xml\).

Add UnWatchedEpisodes

Find this in View_54_InfoWall.xml

<control type="label">
	<left>0</left>
	<top>20</top>
	<width>244</width>
	<label>$INFO[ListItem.Property(WatchedEpisodes)]$INFO[ListItem.Property(TotalEpisodes), / ,]</label>
	<font>font20_title</font>
	<shadowcolor>text_shadow</shadowcolor>
	<align>right</align>
</control>

Change

$INFO[ListItem.Property(WatchedEpisodes)]$INFO[ListItem.Property(TotalEpisodes), / ,]</label>

to

$INFO[ListItem.Property(WatchedEpisodes)] $INFO[ListItem.Property(TotalEpisodes), / ,] | $INFO[ListItem.Property(UnWatchedEpisodes)]</label>

This changes poster text from "W/T EYE" to "W/T (UWE) EYE".

Show Watched/Total | UnWatchedEpisodes when W!=0

Add this in control section above

!String.IsEqual(ListItem.Property(WatchedEpisodes),"0")

Show Watched/Total when W=0

Find this in View_54_InfoWall.xml

<control type="group">
	<visible>String.IsEqual(ListItem.DBtype,tvshow)

Add this control section in the group

<control type="label">
	<visible>String.IsEqual(ListItem.Property(WatchedEpisodes),"0")</visible>					
	<left>0</left>
	<top>20</top>
	<width>244</width>
	<label>$INFO[ListItem.Property(WatchedEpisodes)]$INFO[ListItem.Property(TotalEpisodes), / ,]</label>
	<font>font20_title</font>
	<shadowcolor>text_shadow</shadowcolor>
	<align>right</align>
</control>

Hide the eye image when all episodes are watched

In the above control group find this

<control type="image">
	<left>254</left>
	<top>23</top>
	<width>24</width>
	<height>24</height>
	<texture>lists/played-total.png</texture>
</control>

add this code in the control section to hide the eye:

<visible>!String.IsEqual(ListItem.Property(UnWatchedEpisodes),"0")</visible>