Kodi Community Forum

Full Version: [RELEASE] RandomEpisode Script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Based on the RandomItems Script by Hitcher, ppic, Ronie, Nuka, et al.
This script takes a show name, and plays a random episode of it.
It includes the option to only play a previously watched episode as well.

Parameters (separated by & ):

Code:
show=title      ; Required. Title of the show of which to play a random episode.
played=True   ; True to only play episodes that have been played (default=False)

For example:

Code:
XBMC.RunScript(script.randomepisode,show=Boardwalk Empire&played=True)

will play a random already watched episode of Boardwalk Empire.

My skin uses this button under TV shows to allow you to play a random episode of the currently selected listitem.

Code:
<onclick>XBMC.RunScript(script.randomepisode,show=$INFO[ListItem.Label]&amp;played=True)</onclick>

Available here: (Mirrors welcome)
http://www.megaupload.com/?d=6T9S6BEF