Add-on:Skin Widgets/RandomItems: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>Phil65
(removed wrong entry)
>Martijn
Line 29: Line 29:
| RandomMovie.%d.Rating || movie rating
| RandomMovie.%d.Rating || movie rating
|-
|-
| RandomMovie.%d.Fanart || movie fanart
| RandomMovie.%d.Trailer || movie trailer
|-
|-
| RandomMovie.%d.Thumb || movie thumbnail
| RandomMovie.%d.Art(poster) || movie poster
|-
|-
| RandomMovie.%d.Logo || movie logo
| RandomMovie.%d.Art(fanart) || movie fanart
|-
|-
| RandomMovie.%d.Landscape || movie landscape
| RandomMovie.%d.Art(clearlogo) || movie clearlogo
|-
|-
| RandomMovie.%d.Banner || movie banner
| RandomMovie.%d.Art(clearart) || movie clearart
|-
|-
| RandomMovie.%d.Disc || movie disc
| RandomMovie.%d.Art(landscape) || movie 16:9 landscape image
|-
|-
| RandomMovie.%d.Resume || movie resume (true/false)
| RandomMovie.%d.Art(banner) || movie banner
|-
|-
| RandomMovie.%d.Played || movie percentage played
| RandomMovie.%d.Art(discart) || movie disc
|-
|-
| RandomMovie.%d.File || movie path + filename
| RandomMovie.%d.Resume|| movie resume true/false
|-
| RandomMovie.%d.PercentPlayed|| movie percentage played
|-
| RandomMovie.%d.Watched|| movie watched true/false
|-
| RandomMovie.%d.File|| movie filename and path
|-
|-
| RandomMovie.%d.Path || movie path
| RandomMovie.%d.Path || movie path
|-
| RandomMovie.%d.VideoCodec || movie codec
|-
| RandomMovie.%d.VideoResolution || movie resolution
|-
| RandomMovie.%d.VideoAspect || movie aspect ratio
|-
| RandomMovie.%d.AudioCodec || movie codec
|-
| RandomMovie.%d.AudioChannels || movie audio channels
|-
|-
|}
|}
Line 72: Line 88:
| RandomEpisode.%d.Rating || episode rating
| RandomEpisode.%d.Rating || episode rating
|-
|-
| RandomEpisode.%d.Thumb ||episode thumbnail
| RandomEpisode.%d.Art(thumb) ||episode thumbnail
|-
|-
| RandomEpisode.%d.Fanart || tv show fanart
| RandomEpisode.%d.Art(tvshow.fanart) || tv show fanart
|-
|-
| RandomEpisode.%d.Poster || tv show poster
| RandomEpisode.%d.Art(tvshow.poster) || tv show poster
|-
|-
| RandomEpisode.%d.Banner || tv show banner
| RandomEpisode.%d.Art(tvshow.banner) || tv show banner
|-
|-
| RandomEpisode.%d.Logo || tv show logo
| RandomEpisode.%d.Art(tvshow.clearlogo) || tv show clearlogo
|-
|-
| RandomEpisode.%d.Clearart || tv show clearart
| RandomEpisode.%d.Art(tvshow.clearart) || tv show clearart
|-
| RandomEpisode.%d.SeasonThumb || season thumbnail (this does not work atm)
|-
| RandomEpisode.%d.TVshowThumb  || tv show thumbnail
|-
|-
| RandomEpisode.%d.Resume || indicates if it's a partially watched episode (true/false)
| RandomEpisode.%d.Resume || indicates if it's a partially watched episode (true/false)
|-
|-
| RandomEpisode.%d.Played || percentage played
| RandomEpisode.%d.PercentPlayed || percentage played
|-
|-
| RandomEpisode.%d.File || episode filename and path
| RandomEpisode.%d.File || episode filename and path
|-
|-
| RandomEpisode.%d.Path || TV show path
| RandomEpisode.%d.Path || TV show path
|-
| RandomEpisode.%d.VideoCodec || episode video codec
|-
| RandomEpisode.%d.VideoResolution || episode resolution
|-
| RandomEpisode.%d.VideoAspect || episode aspect ratio
|-
| RandomEpisode.%d.AdioCodec || episode audio codec
|-
| RandomEpisode.%d.AudioChannels || episode audio channels
|-
|-
|}
|}

Revision as of 16:29, 4 November 2012

RandomItems

Use: Window(Home).Property(*)


Movies

Available labels
Property: Movies Description
RandomMovie.%d.Title movie title
RandomMovie.%d.Year year of release
RandomMovie.%d.Genre movie genre
RandomMovie.%d.Studio movie studio
RandomMovie.%d.Plot movie plot
RandomMovie.%d.PlotOutline movie plotoutline
RandomMovie.%d.Tagline movie tagline
RandomMovie.%d.Runtime duration of the movie
RandomMovie.%d.Rating movie rating
RandomMovie.%d.Trailer movie trailer
RandomMovie.%d.Art(poster) movie poster
RandomMovie.%d.Art(fanart) movie fanart
RandomMovie.%d.Art(clearlogo) movie clearlogo
RandomMovie.%d.Art(clearart) movie clearart
RandomMovie.%d.Art(landscape) movie 16:9 landscape image
RandomMovie.%d.Art(banner) movie banner
RandomMovie.%d.Art(discart) movie disc
RandomMovie.%d.Resume movie resume true/false
RandomMovie.%d.PercentPlayed movie percentage played
RandomMovie.%d.Watched movie watched true/false
RandomMovie.%d.File movie filename and path
RandomMovie.%d.Path movie path
RandomMovie.%d.VideoCodec movie codec
RandomMovie.%d.VideoResolution movie resolution
RandomMovie.%d.VideoAspect movie aspect ratio
RandomMovie.%d.AudioCodec movie codec
RandomMovie.%d.AudioChannels movie audio channels

Episodes

Available labels
Property: Episodes Description
RandomEpisode.%d.Title episode title
RandomEpisode.%d.Episode episode number
RandomEpisode.%d.EpisodeNo season/episode (sxxexx)
RandomEpisode.%d.Season season number
RandomEpisode.%d.Plot episode plot
RandomEpisode.%d.TVshowTitle tv show title
RandomEpisode.%d.Rating episode rating
RandomEpisode.%d.Art(thumb) episode thumbnail
RandomEpisode.%d.Art(tvshow.fanart) tv show fanart
RandomEpisode.%d.Art(tvshow.poster) tv show poster
RandomEpisode.%d.Art(tvshow.banner) tv show banner
RandomEpisode.%d.Art(tvshow.clearlogo) tv show clearlogo
RandomEpisode.%d.Art(tvshow.clearart) tv show clearart
RandomEpisode.%d.Resume indicates if it's a partially watched episode (true/false)
RandomEpisode.%d.PercentPlayed percentage played
RandomEpisode.%d.File episode filename and path
RandomEpisode.%d.Path TV show path
RandomEpisode.%d.VideoCodec episode video codec
RandomEpisode.%d.VideoResolution episode resolution
RandomEpisode.%d.VideoAspect episode aspect ratio
RandomEpisode.%d.AdioCodec episode audio codec
RandomEpisode.%d.AudioChannels episode audio channels

MusicVideo

Available labels
Property: MusicVideo Description
RandomMusicVideo.%d.Title video name
RandomMusicVideo.%d.Artist artist name
RandomMusicVideo.%d.Year release year
RandomMusicVideo.%d.Plot video plot
RandomMusicVideo.%d.Genre video genre
RandomMusicVideo.%d.Runtime runtime
RandomMusicVideo.%d.Thumb video thumb
RandomMusicVideo.%d.Fanart video fanart
RandomMusicVideo.%d.File video path + file
RandomMusicVideo.%d.Path video path

Albums

Available labels
Property: Albums Description
RandomAlbum.%d.Title name of the album
RandomAlbum.%d.Artist album artist
RandomAlbum.%d.Genre album genre
RandomAlbum.%d.Year year of release
RandomAlbum.%d.RecordLabel recordlabel
RandomAlbum.%d.Description album description
RandomAlbum.%d.Rating rating of the album
RandomAlbum.%d.Thumb album thumbnail
RandomAlbum.%d.Fanart artist fanart
RandomAlbum.%d.Play can be used to play the album


Artist

Available labels
Property: Artist Description
RandomArtist.%d.Title artist name
RandomArtist.%d.Genre artist genre
RandomArtist.%d.Fanart artist fanart
RandomArtist.%d.Thumb artist thumb
RandomArtist.%d.Description artist description
RandomArtist.%d.LibraryPath open artist library path

Song

Available labels
Property: Song Description
RandomSong.%d.Title song name
RandomSong.%d.Artist song artist
RandomSong.%d.Year year of release
RandomSong.%d.Rating song rating
RandomSong.%d.Thumb song thumbnail
RandomSong.%d.Fanart song fanart
RandomSong.%d.File File name


Addon

Available labels
Property: Addon Description
RandomAddon.%d.Title addon name
RandomAddon.%d.Author addon author(s)
RandomAddon.%d.Summary addon summary
RandomAddon.%d.Version addon version
RandomAddon.%d.Path addon id
RandomAddon.%d.Fanart addon fanart
RandomAddon.%d.Thumb addon thumb/icon
RandomAddon.%d.Type addon type


Play or open

Code example to play album:

   <onclick>$INFO[Window(Home).Property(RandomAlbum.%d.Play)]</onclick>

Code example to open artist:

   <onclick>$INFO[Window(Home).Property(RandomArtist.%d.LibraryPath)]</onclick>