Smart playlists/Rules and groupings

From Official Kodi Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Smart Playlists Contents

Home icon grey.png   ▶ Playlists ▶ Smart playlists ▶ Rules and groupings


This page lists the available attributes and operators that can be used in Smart Playlist XSP files. What can be used is dependent on the playlist type and rules.

For a complete Master list see Smart Playlists on Github


Grouping

Available fields for grouping. Availability depends upon the playlist type in use.

  • none
  • sets
  • genres
  • years
  • actors
  • directors
  • writers
  • studios
  • countries
  • artists
  • albums
  • tags
  • originalyears


Operators

The operators available will depend on the selected field.

The operator attribute specifies the rule that should be used to match the parameter to the field. All matching is done case-insensitive. The allowed operators are:

operator Definition
contains True if the field contains the parameter as a substring
doesnotcontain True if the field does not contain the parameter as a substring
is True if the field matches the parameter exactly
isnot True if the field does not match the parameter exactly
startswith True if the start of the field matches the parameter
endswith True if the end of the field matches the parameter
lessthan True if the content of the field is less than the parameter
greaterthan True if the content of the field is greater than the parameter
after True if the content of the field comes after the parameter
before True if the content of the field comes before the parameter
inthelast True if the field falls in the last range specified by the parameter. Only applicable for a date field.
notinthelast True if the field does not fall in the last range specified by the parameter. Only applicable for a date field.



Fields

Songs

  • Genre
  • Source
  • Album
  • DiscTitle
  • Artist
  • AlbumArtist
  • Title
  • Year
  • OrigYear
  • Time
  • TrackNumber
  • Filename
  • Path
  • Playcount
  • LastPlayed
  • Rating
  • UserRating
  • Comment
  • Moods
  • BPM
  • SampleRate
  • MusicBitRate
  • NoOfChannels
  • DateAdded
  • DateModified
  • DateNew


Albums

  • Genre
  • Source
  • Album
  • DiscTitle
  • TotalDiscs
  • IsBoxset
  • Artist
  • AlbumArtist
  • Year
  • OrigYear
  • AlbumDuration
  • Review
  • Themes
  • Moods
  • Styles
  • Compilation
  • AlbumType
  • MusicLabel
  • Rating
  • UserRating
  • Playcount
  • LastPlayed
  • Path
  • AlbumStatus
  • DateAdded
  • DateModified
  • DateNew


Artists

  • Artist
  • Source
  • Genre
  • Moods
  • Styles
  • Instruments
  • Biography
  • ArtistType
  • Gender
  • Disambiguation
  • Born
  • BandFormed
  • Disbanded
  • Died
  • Role
  • Path
  • DateAdded
  • DateModified
  • DateNew


TV Shows

  • Title
  • OriginalTitle
  • Plot
  • TvShowStatus
  • Votes
  • Rating
  • UserRating
  • Year
  • Genre
  • Director
  • Actor
  • NumberOfEpisodes
  • NumberOfWatchedEpisodes
  • Playcount
  • Path
  • Studio
  • MPAA
  • DateAdded
  • LastPlayed
  • InProgress
  • Tag


Episodes

  • Title
  • TvShowTitle
  • OriginalTitle
  • Plot
  • Votes
  • Rating
  • UserRating
  • Time
  • Writer
  • AirDate
  • Playcount
  • LastPlayed
  • InProgress
  • Genre
  • Year // premiered
  • Director
  • Actor
  • EpisodeNumber
  • Season
  • Filename
  • Path
  • Studio
  • MPAA
  • DateAdded
  • Tag
  • VideoResolution
  • AudioChannels
  • AudioCount
  • SubtitleCount
  • VideoCodec
  • AudioCodec
  • AudioLanguage
  • SubtitleLanguage
  • VideoAspectRatio
  • HdrType


Movies

  • Title
  • OriginalTitle
  • Plot
  • PlotOutline
  • Tagline
  • Votes
  • Rating
  • UserRating
  • Time
  • Writer
  • Playcount
  • LastPlayed
  • InProgress
  • Genre
  • Country
  • Year // premiered
  • Director
  • Actor
  • MPAA
  • Top250
  • Studio
  • Trailer
  • Filename
  • Path
  • Set
  • Tag
  • DateAdded
  • VideoResolution
  • AudioChannels
  • AudioCount
  • SubtitleCount
  • VideoCodec
  • AudioCodec
  • AudioLanguage
  • SubtitleLanguage
  • VideoAspectRatio
  • HdrType


Music Videos

  • Title
  • Genre
  • Album
  • Year
  • Artist
  • Filename
  • Path
  • Playcount
  • LastPlayed
  • Rating
  • UserRating
  • Time
  • Director
  • Studio
  • Plot
  • Tag
  • DateAdded
  • VideoResolution
  • AudioChannels
  • AudioCount
  • SubtitleCount
  • VideoCodec
  • AudioCodec
  • AudioLanguage
  • SubtitleLanguage
  • VideoAspectRatio
  • HdrType

Other

  • Playlist
  • VirtualFolder


Return to top