Kodi Community Forum
Configure Random Items (Transparency Skin) - 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: Skin Archive (https://forum.kodi.tv/forumdisplay.php?fid=179)
+----- Forum: Transparency! (https://forum.kodi.tv/forumdisplay.php?fid=115)
+----- Thread: Configure Random Items (Transparency Skin) (/showthread.php?tid=116086)



Configure Random Items (Transparency Skin) - kapperz - 2011-12-04

Hi,

I like the new Random Items feature (added in v3.11.1). I was wondering if its possible to modify it to choose random items more frequently (instead of the default 30min) and pick from all movies rather than only unwatched.

I found one thread post to change random items every time you go home (which would be great too), but don't know where to make the change.

Many Thanks!


- ronie - 2011-12-04

move the piece of code that runs the script from Startup.xml to Home.xml

to include all movies (and episodes) make the change in bold:
Code:
script.randomitems,limit=3&alarm=60[b]&unplayed=True[/b]



- kapperz - 2011-12-04

Thanks ronie, I've poked around the filesystem and don't see startup.xml or home.xml.

I'm running the XMBC Live 10.1.


- ronie - 2011-12-04

look in this direcory:
~/.xbmc/addons/skin.transparency/720p


- kapperz - 2011-12-04

Ronie,

Thanks for your patience with this. I have looked in a bunch of the .xml files and don't see anything that starts the randomitems script. I have tired to add the following to line to Home.xml within the <control> at ln 95 with no affect (restarted xbmc between changes).
Code:
<onfocus>RunScript(script.randomitems,limit=5&amp;alarm=30;unplayed=True)</onfocus>

I have zipped up some of the unmodified xml files from the 720p directory. I'm pretty technically inclined. What am I missing here?

http://dl.dropbox.com/u/3989834/skin.transparency.720p.zip


- ronie - 2011-12-04

no wonder, my comments above weren't exactly accurate for dharma :-)

in Home.xml, make this change:
Code:
<control type="button" id="5043">
    <description>don't run scripts</description>
    <posx>-20</posx>
    <posy>-20</posy>
    <width>1</width>
    <height>1</height>
    <label>-</label>
    <font>-</font>
    <texturenofocus>-</texturenofocus>
    <texturefocus>-</texturefocus>
    [b]<include condition="Skin.HasSetting(HomepageRandomMovies) | Skin.HasSetting(HomepageRandomTVShows) | Skin.HasSetting(HomepageRandomAlbums)">randomitemsscript</include>[/b]
    <onfocus>SetFocus(9000)</onfocus>
    <visible>!Skin.HasSetting(Startup) + [!Skin.HasSetting(LibraryUpdated) | [Skin.HasSetting(LibraryUpdated) + [Window.IsVisible(DialogMusicScan.xml) | Window.IsVisible(DialogVideoScan.xml)]]]</visible>
</control>

in Includes.xml, make change this:
Code:
<include name="randomitemsscripthome">
    <onfocus>RunScript(script.randomitems,limit=3&amp;albums=True[b]&amp;unplayed=True[/b])</onfocus>
</include>



- kapperz - 2011-12-05

Works, Thanks!