Smart playlists/Rules and groupings: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
m (Karellen moved page Smart playlists/Operators to Smart playlists/Rules and groupings without leaving a redirect)
m (Updated for v19)
(One intermediate revision by the same user not shown)
Line 5: Line 5:
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.
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 [https://github.com/xbmc/xbmc/blob/master/xbmc/playlists/SmartPlayList.cpp Smart Playlists on Github]
For a complete Master list see '''[https://github.com/xbmc/xbmc/blob/master/xbmc/playlists/SmartPlayList.cpp Smart Playlists on Github]'''




Line 272: Line 272:
* Playlist
* Playlist
* VirtualFolder
* VirtualFolder




Line 279: Line 278:


{{updated|19}}
{{updated|19}}
[[Category:Index]]
 
[[Category:Guides]]
[[Category:Manual]]
[[Category:Karellen]]
[[Category:Karellen]]
[[Category:Music library]]
[[Category:Video library]]
[[Category:Video library]]
[[Category:Music library]]
[[Category:Advanced topics]]

Revision as of 02:19, 8 March 2021

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


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
  • Artist
  • AlbumArtist
  • Title
  • Year
  • Time
  • TrackNumber
  • Filename
  • Path
  • Playcount
  • LastPlayed
  • Rating
  • UserRating
  • Comment
  • Moods


Albums

  • Genre
  • Source
  • Album
  • Artist
  • AlbumArtist
  • Year
  • Review
  • Themes
  • Moods
  • Styles
  • Compilation
  • AlbumType
  • MusicLabel
  • Rating
  • UserRating
  • Playcount
  • LastPlayed
  • Path


Artists

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


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


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


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


Other

  • Playlist
  • VirtualFolder


Return to top