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

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
m (screenshots)
 
(10 intermediate revisions by the same user not shown)
Line 2: Line 2:
__FORCETOC__
__FORCETOC__


This tutorial will show how to add UnWatchedEpisodes (UW) count to TV Show posters. Default only "WatchedEpisodes / TotalEpisodes" (W/T) is shown. This will change the TV posters on the Home page (In Progress and Unwatched) and the TV Show views Poster, InfoWall and Wall.
This tutorial will show how to add '''UnWatchedEpisodes (UWE)''' count to TV Show posters. Default only '''"WatchedEpisodes / TotalEpisodes" (W/T)''' is shown. 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\).
This is achieved by editing ''View_54_InfoWall.xml'' (...\Kodi\addons\skin.estuary\xml\).
<gallery widths=400px heights=160px>
File:Walltvposters-default.png|TV Wall view without mods
File:Walltvposters-mod4.png|TV Wall view with mods 1-4
File:Walltvposters-mod5.png|TV Wall view with mods 1-3 & 5
</gallery>


== Add UnWatchedEpisodes ==
== Add UnWatchedEpisodes ==
Line 32: Line 38:
This changes poster text from "W/T" to "W/T | UW".
This changes poster text from "W/T" to "W/T | UW".


== Show W/T | UW when W!=0 AND UWE!=0 ==
== Show W/T | UW when W!=0 and UWE!=0 ==
"Watched / Total | Unwatched"
Show "Watched / Total | Unwatched"
 
e.g. 3/50 | 47


'''IF''' Watched !=0
'''IF''' Watched !=0
Line 46: Line 54:


Add this in control section above
Add this in control section above
<syntaxhighlight lang="xml">!String.IsEqual(ListItem.Property(WatchedEpisodes),"0")+!String.IsEqual(ListItem.Property(UnWatchedEpisodes),"0")</syntaxhighlight>
<syntaxhighlight lang="xml"> <visible>!String.IsEqual(ListItem.Property(WatchedEpisodes),"0")+!String.IsEqual(ListItem.Property(UnWatchedEpisodes),"0")</visible></syntaxhighlight>


== Show W/T when W=0 ==
== Show W/T when W=0 ==
Find this in ''View_54_InfoWall.xml''
Find this in ''View_54_InfoWall.xml'' (same section as above)
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<control type="group">
<control type="group">
<visible>String.IsEqual(ListItem.DBtype,tvshow)
<visible>String.IsEqual(ListItem.DBtype,tvshow)</visible>
<top>320</top>
<control type="image">
<left>35</left>
<top>0</top>
<width>250</width>
<height>50</height>
<texture colordiffuse="CCFFFFFF">overlays/overlayfade.png</texture>
<visible>!String.IsEmpty(ListItem.Art(poster))</visible>
    </control>
</syntaxhighlight>
</syntaxhighlight>


Add this control section in the group
Add this control section '''after''' </control>
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<control type="label">
<control type="label">
Line 70: Line 87:


== Show W/T when UWE=0 ==
== Show W/T when UWE=0 ==
Change in the above section
Change in the control above section


<syntaxhighlight lang="xml"><visible>String.IsEqual(ListItem.Property(WatchedEpisodes),"0")</visible></syntaxhighlight>
<syntaxhighlight lang="xml"><visible>String.IsEqual(ListItem.Property(WatchedEpisodes),"0")</visible></syntaxhighlight>


to
to
<syntaxhighlight lang="xml"><visible>String.IsEqual(ListItem.Property(WatchedEpisodes),"0")+String.IsEqual(ListItem.Property(UnWatchedEpisodes),"0")</visible></syntaxhighlight>
<syntaxhighlight lang="xml"><visible>String.IsEqual(ListItem.Property(WatchedEpisodes),"0")|String.IsEqual(ListItem.Property(UnWatchedEpisodes),"0")</visible></syntaxhighlight>


== Hide the eye image when all episodes are watched ==
== Hide the eye image when all episodes are watched ==
This looks best if you ''don't'' do mod 4. You can always see TotalEpisodes on the info page for the TV Show.
Find this in ''View_54_InfoWall.xml''
Find this in ''View_54_InfoWall.xml''



Latest revision as of 20:10, 20 July 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 "WatchedEpisodes / TotalEpisodes" (W/T) is shown. 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

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

to

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

This changes poster text from "W/T" to "W/T | UW".

Show W/T | UW when W!=0 and UWE!=0

Show "Watched / Total | Unwatched"

e.g. 3/50 | 47

IF Watched !=0

e.g. NOT 0/50

AND

IF Unwatched !=0

e.g. NOT 50/50

Add this in control section above

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

Show W/T when W=0

Find this in View_54_InfoWall.xml (same section as above)

<control type="group">
	<visible>String.IsEqual(ListItem.DBtype,tvshow)</visible>
	<top>320</top>
	<control type="image">
		<left>35</left>
		<top>0</top>
		<width>250</width>
		<height>50</height>
		<texture colordiffuse="CCFFFFFF">overlays/overlayfade.png</texture>
		<visible>!String.IsEmpty(ListItem.Art(poster))</visible>
    	</control>

Add this control section after </control>

<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>

Show W/T when UWE=0

Change in the control above section

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

to

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

Hide the eye image when all episodes are watched

This looks best if you don't do mod 4. You can always see TotalEpisodes on the info page for the TV Show.

Find this in View_54_InfoWall.xml

<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>