Kodi Community Forum

Full Version: Remove spoiler image episode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, It's possible to remove the thumbnail from the episode on tv shows for prevent spoilers?
If you want to replace it with tv show landscape or fanart for unwatched episodes, find InfoWallThumbVar in Variables.xml and add these two lines before the two <value> lines:

Quote:<value condition="String.IsEqual(ListItem.DbType,episode) + !Integer.IsGreater(ListItem.Playcount,0) + !String.IsEmpty(ListItem.Art(tvshow.landscape))">$INFO[ListItem.Art(tvshow.landscape)]</value>

<value condition="String.IsEqual(ListItem.DbType,episode) + !Integer.IsGreater(ListItem.Playcount,0) + !String.IsEmpty(ListItem.Art(fanart))">$INFO[ListItem.Art(fanart)]</value>



If you want to make it a skin option, in SkinSettings.xml, inside the block that starts with <control type="grouplist" id="600"> add this

Quote: <control type="radiobutton" id="6051">
<label>Hide thumbnails for unwatched episodes</label>
<include>DefaultSettingButton</include>
<onclick>Skin.ToggleSetting(hide_thumbs)</onclick>
<selected>Skin.HasSetting(hide_thumbs)</selected>
</control>

then in the two lines that you added to InfoWallThumbVar add the condition + Skin.HasSetting(hide_thumbs), so basically

Quote:<value condition="String.IsEqual(ListItem.DbType,episode) + Skin.HasSetting(hide_thumbs) + !Integer.IsGreater(ListItem.Playcount,0) + !String.IsEmpty(ListItem.Art(tvshow.landscape))">$INFO[ListItem.Art(tvshow.landscape)]</value>

<value condition="String.IsEqual(ListItem.DbType,episode) + Skin.HasSetting(hide_thumbs) + !Integer.IsGreater(ListItem.Playcount,0) + !String.IsEmpty(ListItem.Art(fanart))">$INFO[ListItem.Art(fanart)]</value>
(2017-09-04, 00:17)adun79 Wrote: [ -> ]If you want to replace it with tv show landscape or fanart for unwatched episodes, find InfoWallThumbVar in Variables.xml and add these two lines before the two <value> lines:

Quote:<value condition="String.IsEqual(ListItem.DbType,episode) + !Integer.IsGreater(ListItem.Playcount,0) + !String.IsEmpty(ListItem.Art(tvshow.landscape))">$INFO[ListItem.Art(tvshow.landscape)]</value>

<value condition="String.IsEqual(ListItem.DbType,episode) + !Integer.IsGreater(ListItem.Playcount,0) + !String.IsEmpty(ListItem.Art(fanart))">$INFO[ListItem.Art(fanart)]</value>



If you want to make it a skin option, in SkinSettings.xml, inside the block that starts with <control type="grouplist" id="600"> add this

Quote: <control type="radiobutton" id="6051">
<label>Hide thumbnails for unwatched episodes</label>
<include>DefaultSettingButton</include>
<onclick>Skin.ToggleSetting(hide_thumbs)</onclick>
<selected>Skin.HasSetting(hide_thumbs)</selected>
</control>

then in the two lines that you added to InfoWallThumbVar add the condition + Skin.HasSetting(hide_thumbs), so basically

Quote:<value condition="String.IsEqual(ListItem.DbType,episode) + Skin.HasSetting(hide_thumbs) + !Integer.IsGreater(ListItem.Playcount,0) + !String.IsEmpty(ListItem.Art(tvshow.landscape))">$INFO[ListItem.Art(tvshow.landscape)]</value>

<value condition="String.IsEqual(ListItem.DbType,episode) + Skin.HasSetting(hide_thumbs) + !Integer.IsGreater(ListItem.Playcount,0) + !String.IsEmpty(ListItem.Art(fanart))">$INFO[ListItem.Art(fanart)]</value>


Thank you so much man
Just came here to thank you so so so so so so so so so so much.

While this only seems to work on some view styles for the Estuary skin, I'm SO HAPPY this is something I was able to make work. Thank you thank you thank you thank you.

Question: Is there a way to make this work in the List / WideList views for TV shows? It only seems to work in the "Wall" views.