aboutsummaryrefslogtreecommitdiff
path: root/addons/skin.estuary
diff options
context:
space:
mode:
authorMiguel Borges de Freitas <enen92@users.noreply.github.com>2022-09-26 12:19:30 +0100
committerGitHub <noreply@github.com>2022-09-26 12:19:30 +0100
commitf0c49f90ec433c528c0704cc829f451ee8cc2601 (patch)
tree58d0762547317b40ab661bcd1203b19086aeb6b0 /addons/skin.estuary
parent0ae43ce310fc0ad8c3a3aeb2659f02f94bfceba9 (diff)
parentab27e77670f6d4fcda648b0993d3e66115ce9502 (diff)
Merge pull request #21874 from enen92/hideepisodethumbs
[info] Add System.Setting(hideunwatchedepisodethumbs) info bool
Diffstat (limited to 'addons/skin.estuary')
-rw-r--r--addons/skin.estuary/xml/DialogVideoInfo.xml4
-rw-r--r--addons/skin.estuary/xml/Variables.xml8
-rw-r--r--addons/skin.estuary/xml/View_50_List.xml2
3 files changed, 10 insertions, 4 deletions
diff --git a/addons/skin.estuary/xml/DialogVideoInfo.xml b/addons/skin.estuary/xml/DialogVideoInfo.xml
index e8913b55ab..81002fd778 100644
--- a/addons/skin.estuary/xml/DialogVideoInfo.xml
+++ b/addons/skin.estuary/xml/DialogVideoInfo.xml
@@ -34,7 +34,7 @@
</control>
<control type="group">
<visible>String.IsEqual(ListItem.DBType,episode) | String.IsEqual(ListItem.DBType,video)</visible>
- <visible>!String.IsEmpty(ListItem.Thumb) + !String.IsEqual(ListItem.Thumb,ListItem.Art(poster))</visible>
+ <visible>!String.IsEmpty(ListItem.Art(thumb)) + !String.IsEqual(ListItem.Art(thumb),ListItem.Art(poster))</visible>
<control type="image">
<left>4</left>
<top>4</top>
@@ -49,7 +49,7 @@
<width>506</width>
<height>801</height>
<aspectratio>keep</aspectratio>
- <texture>$INFO[ListItem.Thumb]</texture>
+ <texture>$VAR[ShiftThumbVar]</texture>
<bordertexture border="21" infill="false">overlays/shadow.png</bordertexture>
<bordersize>20</bordersize>
</control>
diff --git a/addons/skin.estuary/xml/Variables.xml b/addons/skin.estuary/xml/Variables.xml
index d875941d08..6b3da75b96 100644
--- a/addons/skin.estuary/xml/Variables.xml
+++ b/addons/skin.estuary/xml/Variables.xml
@@ -48,7 +48,10 @@
<value condition="ListItem.IsParentFolder">DefaultFolderBackSquare.png</value>
<value condition="String.IsEmpty(Listitem.Thumb) + [String.IsEqual(listitem.dbtype,album) | String.IsEqual(listitem.dbtype,artist)]">DefaultAudio.png</value>
<value condition="ListItem.IsFolder + String.IsEmpty(ListItem.Thumb)">DefaultFolderSquare.png</value>
- <value>$INFO[ListItem.Thumb]</value>
+ <value condition="String.IsEqual(ListItem.DbType,episode) + System.Setting(hideunwatchedepisodethumbs) + Integer.IsEqual(ListItem.Playcount,0) + !String.IsEmpty(Listitem.Art(fanart))">$INFO[Listitem.Art(fanart)]</value>
+ <value condition="String.IsEqual(ListItem.DbType,episode) + System.Setting(hideunwatchedepisodethumbs) + Integer.IsEqual(ListItem.Playcount,0) + String.IsEmpty(Listitem.Art(fanart))">OverlaySpoiler.png</value>
+ <value condition="String.IsEqual(ListItem.DbType,episode) + [ !System.Setting(hideunwatchedepisodethumbs) | Integer.IsGreater(ListItem.Playcount,0) ]">$INFO[Listitem.Art(thumb)]</value>
+ <value>$INFO[ListItem.Art(thumb)]</value>
</variable>
<variable name="MusicInfoThumbVar">
<value condition="!String.IsEmpty(Listitem.Art(thumb))">$INFO[Listitem.Art(thumb)]</value>
@@ -58,6 +61,9 @@
</variable>
<variable name="InfoWallThumbVar">
<value condition="!String.IsEqual(listitem.dbtype,musicvideo) + !String.IsEmpty(Listitem.Art(poster))">$INFO[Listitem.Art(poster)]</value>
+ <value condition="String.IsEqual(ListItem.DbType,episode) + System.Setting(hideunwatchedepisodethumbs) + Integer.IsEqual(ListItem.Playcount,0) + !String.IsEmpty(Listitem.Art(fanart))">$INFO[Listitem.Art(fanart)]</value>
+ <value condition="String.IsEqual(ListItem.DbType,episode) + System.Setting(hideunwatchedepisodethumbs) + Integer.IsEqual(ListItem.Playcount,0) + String.IsEmpty(Listitem.Art(fanart))">OverlaySpoiler.png</value>
+ <value condition="String.IsEqual(ListItem.DbType,episode) + [ !System.Setting(hideunwatchedepisodethumbs) | Integer.IsGreater(ListItem.Playcount,0) ]">$INFO[Listitem.Art(thumb)]</value>
<value>$INFO[ListItem.Icon]</value>
</variable>
<variable name="PosterThumbVar">
diff --git a/addons/skin.estuary/xml/View_50_List.xml b/addons/skin.estuary/xml/View_50_List.xml
index 722baa0a0c..868f124556 100644
--- a/addons/skin.estuary/xml/View_50_List.xml
+++ b/addons/skin.estuary/xml/View_50_List.xml
@@ -249,7 +249,7 @@
<height>330</height>
<aspectratio aligny="bottom">keep</aspectratio>
<fadetime>300</fadetime>
- <texture background="true">$INFO[ListItem.Icon]</texture>
+ <texture background="true">$VAR[ShiftThumbVar]</texture>
<visible>String.IsEqual(ListItem.DbType,episode)</visible>
</control>
<control type="image">