Kodi Community Forum
[FIX] trailer button appears even when there's no trailer - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+---- Forum: Aeon MQ (https://forum.kodi.tv/forumdisplay.php?fid=68)
+---- Thread: [FIX] trailer button appears even when there's no trailer (/showthread.php?tid=52309)



[FIX] trailer button appears even when there's no trailer - sialivi - 2009-06-05

djh_ comited a fix for this to Git on 2009-06-01 but it only fixed it for movies, not tv shows. Here's a small additional fix to make it work for tv shows as well:

DialogVideoInfo.xml:

Replace...
Code:
<control type="button" id="11">
<label>31409</label>
<include>Objects_FSInfoButton</include>
</control>

...with...
Code:
<control type="button" id="11">
<label>31409</label>
<include>Objects_FSInfoButton</include>
[b]<visible>!IsEmpty(ListItem.Trailer)</visible>[/b]            
</control>

The new line is added to line 505 if you're using a unmodified file from Git.

Update: This fix is no longer needed, it has now been commit to Git