2010-08-19, 16:08
From here -
http://forum.xbmc.org/showthread.php?tid=79290
http://forum.xbmc.org/showthread.php?tid=79290
Hitcher Wrote:I was looking at my modded recentlyadded script so I got the plot part wrong but I've figured out why it's repeating the plot.
The problem is in the Includes_Latest_Added.xml.
PHP Code:<item id="5">
<label>$INFO[Window.Property(LatestEpisode.5.EpisodeTitle)]</label>
<label2>$INFO[Window.Property(LatestEpisode.5.ShowTitle)] - $INFO[Window.Property(LatestEpisode.5.EpisodeNo)]</label2>
<onclick>PlayMedia($INFO[Window.Property(LatestEpisode.5.Path)])</onclick>
<icon>$INFO[Window.Property(LatestEpisode.5.Thumb)]</icon>
<thumb>$INFO[Window.Property(LatestEpisode.5.Fanart)]</thumb>
<visible>!Control.IsVisible(87)</visible>
<visible>Container(300).HasFocus(7)</visible>
</item>
<item id="5">
<label>$INFO[Window.Property(LatestEpisode.6.EpisodeTitle)]</label>
<label2>$INFO[Window.Property(LatestEpisode.6.ShowTitle)] - $INFO[Window.Property(LatestEpisode.6.EpisodeNo)]</label2>
<onclick>PlayMedia($INFO[Window.Property(LatestEpisode.6.Path)])</onclick>
<icon>$INFO[Window.Property(LatestEpisode.6.Thumb)]</icon>
<thumb>$INFO[Window.Property(LatestEpisode.6.Fanart)]</thumb>
<visible>!Control.IsVisible(87)</visible>
<visible>Container(300).HasFocus(7)</visible>
</item>
<item id="5">
<label>$INFO[Window.Property(LatestEpisode.7.EpisodeTitle)]</label>
<label2>$INFO[Window.Property(LatestEpisode.7.ShowTitle)] - $INFO[Window.Property(LatestEpisode.7.EpisodeNo)]</label2>
<onclick>PlayMedia($INFO[Window.Property(LatestEpisode.7.Path)])</onclick>
<icon>$INFO[Window.Property(LatestEpisode.7.Thumb)]</icon>
<thumb>$INFO[Window.Property(LatestEpisode.7.Fanart)]</thumb>
<visible>!Control.IsVisible(87)</visible>
<visible>Container(300).HasFocus(7)</visible>
</item>
Notice the same id is used for all three entries. It should look like this -
PHP Code:<item id="5">
<label>$INFO[Window.Property(LatestEpisode.5.EpisodeTitle)]</label>
<label2>$INFO[Window.Property(LatestEpisode.5.ShowTitle)] - $INFO[Window.Property(LatestEpisode.5.EpisodeNo)]</label2>
<onclick>PlayMedia($INFO[Window.Property(LatestEpisode.5.Path)])</onclick>
<icon>$INFO[Window.Property(LatestEpisode.5.Thumb)]</icon>
<thumb>$INFO[Window.Property(LatestEpisode.5.Fanart)]</thumb>
<visible>!Control.IsVisible(87)</visible>
<visible>Container(300).HasFocus(7)</visible>
</item>
<item id="6">
<label>$INFO[Window.Property(LatestEpisode.6.EpisodeTitle)]</label>
<label2>$INFO[Window.Property(LatestEpisode.6.ShowTitle)] - $INFO[Window.Property(LatestEpisode.6.EpisodeNo)]</label2>
<onclick>PlayMedia($INFO[Window.Property(LatestEpisode.6.Path)])</onclick>
<icon>$INFO[Window.Property(LatestEpisode.6.Thumb)]</icon>
<thumb>$INFO[Window.Property(LatestEpisode.6.Fanart)]</thumb>
<visible>!Control.IsVisible(87)</visible>
<visible>Container(300).HasFocus(7)</visible>
</item>
<item id="7">
<label>$INFO[Window.Property(LatestEpisode.7.EpisodeTitle)]</label>
<label2>$INFO[Window.Property(LatestEpisode.7.ShowTitle)] - $INFO[Window.Property(LatestEpisode.7.EpisodeNo)]</label2>
<onclick>PlayMedia($INFO[Window.Property(LatestEpisode.7.Path)])</onclick>
<icon>$INFO[Window.Property(LatestEpisode.7.Thumb)]</icon>
<thumb>$INFO[Window.Property(LatestEpisode.7.Fanart)]</thumb>
<visible>!Control.IsVisible(87)</visible>
<visible>Container(300).HasFocus(7)</visible>
</item>