Random episode script for skins

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
stafio Offline
Junior Member
Posts: 6
Joined: Oct 2012
Reputation: 0
Post: #1
Based largely off of the Random Movie script for skins, I have created a script to play a random television show episode from your library. You can filter by un-watched and the television series.

Source: https://github.com/stafio/xbmc-random-episode/

For my own use, I have added an option to use the script under TV Shows in the default Confluence skin. Here are the changes I made for this:
- Edit the IncludesHomeMenuItems.xml file in the skin.confluence/720p directory
- Under the section <include name="HomeSubMenuTVShows"> add the following:

Code:
<!--  Random Episode Script  -->
<control type="button" id="90177">
<include>ButtonHomeSubCommonValues</include>
<label>Random Show</label>
<onclick>RunScript(script.randomepisode,prompt=True)</onclick>
<visible>System.HasAddon(script.randomepisode)</visible>
</control>

Just before:

Code:
<control type="image" id="90177">
<width>35</width>
<height>35</height>
<texture border="0,0,0,3">HomeSubEnd.png</texture>
</control>

Note that you will need to change the id of the last control to 90178 since the script is now using 90177.
find quote
Alex001 Offline
Junior Member
Posts: 5
Joined: Aug 2012
Reputation: 0
Post: #2
"Skin Deep" is the twelfth episode of Season One of ABC's Once Upon a Time. It is written by Jane Espenson and directed by Milan Cheylov.
find quote