black09 / script.randomandlastitems Goto Github PK
View Code? Open in Web Editor NEWThis project forked from xbmc-addons/script.randomandlastitems
License: GNU General Public License v2.0
This project forked from xbmc-addons/script.randomandlastitems
License: GNU General Public License v2.0
Parameters (separated by comma , ): type = Movie/Episode/Music | Script will request Movie database or Episode database | (/!\ Caution : upper and lower case are important) limit = # | # to limit returned results (default=10) method = Last/Random/Playlist | Last to get last added items, Random to get random items and Playlist to use the order of the playlist playlist = PathAndNameOfPlaylist | Name of the smartplaylist like special://masterprofile/playlists/video/children.xsp | or empty to request global database | If you set this parameter, you don't need to set type= because type will be read from playlist file menu = | Name of custom or standard menu which display the widget unwatched = True/False | unwatched=True to filter only unwatched items resume = True/False | resume=True to filter only partially watched items property = NameOfTheProperty | You can overwrite the default properties names Playlist<method><type><menu> by using this parameter | example : property=CustomMenu1Widget1 /!\ CAUTION /!\ resume=True can slow down script when working on playlist For example: XBMC.RunScript(script.RandomAndLastItems,type=Movie,limit=10,method=Random,playlist=special://masterprofile/playlists/video/children.xsp,menu=Menu1) will return 10 random movies in Children Smartplaylist. Properties return to Home window (id 10000) : %s.Loaded = Will be cleared upon starting the script and set to "true" if the script is done. * type=Movie %s = Playlist<method>Movie<menu> %d = Movie number %s.Type = Movie %s.Count = Number of movies in library or playlist %s.Unwatched = Number of unwatched movies in library or playlist %s.Watched = Number of watched movies in library or playlist %s.Name = Name of the playlist %s.%d.DBID %s.%d.Title %s.%d.OriginalTitle %s.%d.Year %s.%d.Genre %s.%d.Studio %s.%d.Country %s.%d.Plot %s.%d.PlotOutline %s.%d.Tagline %s.%d.Runtime %s.%d.Rating %s.%d.Trailer %s.%d.MPAA %s.%d.Director %s.%d.Art(thumb) (same value as Art(poster) but make skinner life easier ;) %s.%d.Art(poster) %s.%d.Art(fanart) %s.%d.Art(clearlogo) %s.%d.Art(clearart) %s.%d.Art(landscape) %s.%d.Art(banner) %s.%d.Art(discart) %s.%d.Resume %s.%d.PercentPlayed %s.%d.Watched %s.%d.File %s.%d.Path %s.%d.Play %s.%d.VideoCodec %s.%d.VideoResolution %s.%d.VideoAspect %s.%d.AudioCodec %s.%d.AudioChannels * type=Episode %s = Playlist<method>Episode<menu> %d = Episode number %s.Type = Episode %s.Count = Number of episodes in library or playlist %s.Unwatched = Number of unwatched episodes in library or playlist %s.Watched = Number of watched episodes in library or playlist %s.TvShows = Number of TV shows in library or playlist %s.Name = Name of the playlist %s.%d.DBID %s.%d.Title %s.%d.Episode %s.%d.EpisodeNo %s.%d.Season %s.%d.Plot %s.%d.TVshowTitle %s.%d.Rating %s.%d.Art(thumb) %s.%d.Art(tvshow.fanart) %s.%d.Art(tvshow.poster) %s.%d.Art(tvshow.banner) %s.%d.Art(tvshow.clearlogo) %s.%d.Art(tvshow.clearart) %s.%d.Art(tvshow.landscape) %s.%d.Art(fanart) %s.%d.Art(poster) %s.%d.Art(banner) %s.%d.Art(clearlogo) %s.%d.Art(clearart) %s.%d.Art(landscape) %s.%d.Resume %s.%d.Watched %s.%d.Runtime %s.%d.PercentPlayed %s.%d.File %s.%d.MPAA %s.%d.Studio %s.%d.Path %s.%d.Play %s.%d.VideoCodec %s.%d.VideoResolution %s.%d.VideoAspect %s.%d.AudioCodec %s.%d.AudioChannels * type=Music %s = Playlist<method>Music<menu> %d = Album number %s.Type = Music %s.Artists = Number of artists in library or playlist %s.Albums = Number of albums in library or playlist %s.Songs = Nombre of songs in library or playlist %s.Name = Name of the playlist %s.%d.Title %s.%d.Artist %s.%d.Genre %s.%d.Year %s.%d.Theme %s.%d.Mood %s.%d.Style %s.%d.Type %s.%d.RecordLabel %s.%d.Description %s.%d.Rating %s.%d.Art(thumb) %s.%d.Art(fanart) %s.%d.Play %s.%d.LibraryPath With : XBMC.RunScript(script.RandomAndLastItems,type=Movie,limit=10,method=Random,playlist=special://masterprofile/playlists/video/children.xsp,menu=Menu1) properties will be : PlaylistRandomMovieMenu1.Count PlaylistRandomMovieMenu1.1.Title ... ... PlaylistRandomMovieMenu1.10.Title Code example to play album: <onclick>$INFO[Window(Home).Property(RandomAlbum.%d.Play)]</onclick> Code example to open album: <onclick>$INFO[Window(Home).Property(RandomArtist.%d.LibraryPath)]</onclick> For more information and help please check : http://forum.xbmc.org/showthread.php?p=1014084
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.