Plex Builders¶
Build collections from items already in your Plex library. Use a smart filter for rules Plex maintains automatically, or a manual builder when Kometa should select the members on each run.
Understanding smart vs manual collections¶
| Behaviour | Smart collection | Manual collection |
|---|---|---|
| Membership updates | Plex reevaluates rules as library data changes | Kometa updates membership when it runs; items can also be edited manually |
| Selection | Plex's available filters | Library items selected by builders and filters |
| Typical use | Live rules, such as highly rated thrillers | Specific IDs, curated lists, or external sources |
| Editing | Change the filter rules | Change items or the configuration selecting them |
| Plex icon | Gear icon | Standard collection |
Smart collections are usually lighter and faster when all criteria live in Plex. Smart label collections are an exception to this simple distinction.
Choose a builder¶
| Builder | Selects | Supports | Playlists / custom sort |
|---|---|---|---|
smart_filter |
A live Plex filter | Movies, shows, music | Custom sort; music smart playlists only |
plex_search |
Search results when Kometa runs | See search attributes for library support | Yes |
plex_all |
Every library item | Movies, shows | No |
plex_id |
Plex metadata IDs or GUIDs | Movies, shows | No |
plex_rating_key |
Server-local rating keys | Movies, shows | No |
plex_watchlist |
Watchlist items | Movies, shows | Yes |
plex_pilots |
First episode of each show | Shows, episode level | Yes |
plex_collectionless |
Items outside the considered collections | Movies, shows | No |
Builder attributes¶
These query options apply to search and smart filters. Individual builders below have their own input forms.
| Attribute | Value | Default |
|---|---|---|
limit |
all or a positive integer |
all |
sort_by |
Supported sort string or YAML list | random |
validate |
Boolean; whether validation errors fail the collection | true |
Plex search options¶
Use attribute.modifier: value, such as title.not: "Harry Potter".
The attribute and value are required; modifiers depend on the filter type below.
These options are shared by plex_search and smart_filter.
Boolean Filters take no modifier and can only be either true or false.
Boolean attributes¶
| Attribute | Matches / constraints | Supports |
|---|---|---|
hdr |
Is HDR | Movies, Shows |
hdr10plus |
Has HDR10+ | Movies, Shows |
atmos |
Has Dolby Atmos | Movies, Shows |
unmatched |
Is Unmatched (Music: Artist) | Movies, Music |
duplicate |
Is Duplicate | Movies |
unplayed |
Is Unplayed | Movies |
progress |
Is In Progress | Movies |
trash |
Is Trashed (Music: Track) | Movies, Shows, Music |
unplayed_episodes |
Has Unplayed Episodes | Shows |
episode_unplayed |
Has Episodes Unplayed | Shows |
episode_duplicate |
Has Duplicate Episodes | Shows |
episode_progress |
Has Episode Progress | Shows |
episode_unmatched |
Has Episodes Unmatched | Shows |
show_unmatched |
Has Shows Unmatched | Shows |
artist_unmatched |
Is Artist's Unmatched | Music |
album_unmatched |
Is Album's Unmatched | Music |
track_trash |
Is Track Trashed | Music |
dovi |
Has Dolby Vision | Movies, Shows |
Date filters can be used with no modifier or with .last, .notlast, .before, or .after. The legacy .not modifier is also accepted as .notlast.
No date filter can take multiple values.
Date attributes¶
| Attribute | Matches / constraints | Supports |
|---|---|---|
added |
date added | Movies, Shows |
episode_added |
date added | Shows |
release |
release date attribute (originally available) to match | Movies, Shows |
episode_air_date |
air date attribute (originally available) of the show's episodes to match | Shows |
last_played |
date last played | Movies, Shows |
episode_last_played |
date last played | Shows |
artist_added / date_artist_added |
Artist's date added | Music |
artist_last_played |
Artist's last played | Music |
album_last_played |
Album's last played | Music |
album_added / date_album_added |
Album's date added | Music |
album_released / date_album_released |
Album's release date | Music |
track_last_played |
Track's date last played | Music |
track_last_skipped |
Track's date last skipped | Music |
track_last_rated |
Track's date last rated | Music |
track_added / track_added_at |
Track's date added | Music |
Date Filter Modifiers
| Date Modifier | Description | Plex Web UI Display |
|---|---|---|
No Modifier / .last |
In the last given interval; days by default, or suffix s, min, h, d, m, y. Example: 10h. |
is in the last |
.notlast / .not |
Not in the last given interval; same format as .last. Example: 30 days. |
is not in the last |
.before |
Before a date as MM/DD/YYYY, or today. |
is before |
.after |
After a date as MM/DD/YYYY, or today. |
is after |
For example, date_album_added.last: 10h matches albums added in the last 10 hours.
Number filters can use .is, .isnot, .gt, .gte, .lt, or .lte as a modifier. Only rating filters can use .rated.
No number filter can take multiple values.
Number attributes¶
| Attribute | Matches / constraints | Supports |
|---|---|---|
duration |
duration using minutes Minimum: 0 |
Movies |
year |
year (Music: Album) Minimum: 0 |
Movies, Shows, Music |
plays |
plays Minimum: 0 |
Movies, Shows |
critic_rating |
critic rating Range: 0.0 - 10.0 |
Movies, Shows |
audience_rating |
audience rating Range: 0.0 - 10.0 |
Movies, Shows |
user_rating |
user rating Range: 0.0 - 10.0 |
Movies, Shows |
commonsense_rating |
Uses Plex's Common Sense Media age rating to match Range: 1 - 18 |
Movies, Shows |
episode_year |
Episode's year Minimum: 0 |
Shows |
episode_plays |
Episode's plays Minimum: 0 |
Shows |
episode_critic_rating |
critic rating Range: 0.0 - 10.0 |
Shows |
episode_audience_rating |
audience rating Range: 0.0 - 10.0 |
Shows |
episode_user_rating |
user rating Range: 0.0 - 10.0 |
Shows |
album_year |
Album's year Minimum: 0 |
Music |
album_decade |
Album's decade Minimum: 0 |
Music |
album_plays |
Album's plays Minimum: 0 |
Music |
track_plays |
Track's plays Minimum: 0 |
Music |
track_skips |
Track's skips Minimum: 0 |
Music |
artist_rating / artist_user_rating |
Artist's user rating Range: 0.0 - 10.0 |
Music |
album_rating / album_user_rating |
Album's user rating Range: 0.0 - 10.0 |
Music |
album_critic_rating |
Album's critic rating Range: 0.0 - 10.0 |
Music |
track_rating / track_user_rating |
Track's user rating Range: 0.0 - 10.0 |
Music |
Number Filter Modifiers
| Number Modifier | Description | Plex Web UI Display |
|---|---|---|
.is |
Equal to the number. | is |
.isnot |
Not equal to the number. | is not |
.gt |
Greater than the number. | is greater than |
.gte |
Greater than or equal to the number. | N/A |
.lt |
Less than the number. | is less than |
.lte |
Less than or equal to the number. | N/A |
.rated |
Rated / unrated; takes true or false, and only applies to rating filters. |
N/A |
.ratedonly works for rating filters
String filters can be used with either no modifier or with .not, .is, .isnot, .begins, or .ends.
String filter can take multiple values only as a list.
String attributes¶
| Attribute | Matches / constraints | Supports |
|---|---|---|
title |
title | Movies, Shows |
episode_title |
title | Shows |
studio |
studio | Movies, Shows |
edition |
edition | Movies, Shows |
artist_title |
Artist's Title | Music |
album_title |
Album's Title | Music |
track_title |
Track's Title | Music |
record_label / album_record_label |
Album's Record Label | Music |
audio_codec |
Track's audio codec | Music |
String Filter Modifiers
| String Modifier | Description | Plex Web UI Display |
|---|---|---|
| No Modifier | Contains the string. | contains |
.not |
Does not contain the string. | does not contain |
.is |
Exactly matches the string. | is |
.isnot |
Does not exactly match the string. | is not |
.begins |
Begins with the string. | begins with |
.ends |
Ends with the string. | ends with |
Tag filters can be used with either no modifier or with .not except for decade and resolution which can only be
used with no modifier.
Tag filter can take multiple values as a list or a comma-separated string.
Tag attributes¶
| Attribute | Matches / constraints | Supports |
|---|---|---|
actor |
actor | Movies, Shows |
episode_actor |
episode actor | Shows |
audio_language |
audio language | Movies, Shows |
collection |
collection for top level collections | Movies, Shows |
season_collection |
collection for season collections | Shows |
episode_collection |
collection for episode collections | Shows |
content_rating |
content rating | Movies, Shows |
country |
country | Movies, Shows |
decade |
year tag to match the decade | Movies |
director |
director | Movies |
folder_location |
Plex library root folder location to match | Movies, Shows, Music |
genre |
genre | Movies, Shows |
label |
label for top level collections; in Music, matches the selected artist, album, or track type | Movies, Shows, Music |
season_label |
label for season collections | Shows |
episode_label |
label for episode collections | Shows |
network |
network Only works with the New Plex TV Agent |
Shows |
producer |
Producer tags | Movies |
resolution |
resolution | Movies, Shows |
subtitle_language |
subtitle language | Movies, Shows |
writer |
writer | Movies |
year |
year tag to match (Music: Album) | Movies, Shows, Music |
episode_year |
year tag to match | Shows |
artist_genre |
Artist's Genre | Music |
artist_collection |
Artist's Collection | Music |
artist_country |
Artist's Country | Music |
artist_mood |
Artist's Mood | Music |
artist_style |
Artist's Style | Music |
artist_label |
Artist's Label | Music |
album_genre |
Album's Genre | Music |
album_mood |
Album's Mood | Music |
album_style |
Album's Style | Music |
album_format |
Album's Format | Music |
album_type |
Album's Type | Music |
album_collection |
Album's Collection | Music |
album_source |
Album's Source | Music |
album_label |
Album's Label | Music |
track_mood |
Track's Mood | Music |
track_genre |
Track's Genre | Music |
track_source |
Track's Source | Music |
track_label |
Track's Label | Music |
You can use current_year to have Kometa use the current year. This can be combined with a
-# at the end to subtract that number of years. i.e. current_year-2
folder_location values must match a root folder configured in the Plex library. Plex does not expose nested
subfolders as Folder Location filter choices. In music libraries, folder_location is only available with
builder_level: track.
Tag Filter Modifiers
| Tag Modifier | Description | Plex Web UI Display |
|---|---|---|
| No Modifier | Matches the value. | is |
.not |
Does not match the value. | is not |
Plex sort options¶
Append .asc for ascending or .desc for descending order, such as
audience_rating.desc. random stands alone, without a direction suffix.
Choose a field supported by the selected item level. To sort by several fields,
supply a YAML list; earlier fields take priority.
| Field | Orders by | Supports |
|---|---|---|
title |
Title | Movies, Shows, Episodes, Artists, Albums, Tracks |
season |
Season | Seasons |
show |
Show | Seasons, Episodes |
album_artist |
Album Artist | Albums, Tracks |
artist |
Artist | Tracks |
album |
Album | Tracks |
year |
Year | Movies, Shows, Episodes, Albums |
release |
Release Date (Originally Available) | Movies, Shows, Episodes, Albums |
episode_release |
Episode Release Date (Originally Available) | Shows, Seasons, Episodes |
critic_rating |
Critic Rating | Movies, Shows, Episodes, Albums |
audience_rating |
Audience Rating | Movies, Shows, Episodes |
user_rating |
User Rating | Movies, Shows, Seasons, Episodes, Artists, Albums, Tracks |
content_rating |
Content Rating | Movies, Shows |
duration |
Duration | Movies, Episodes, Tracks |
progress |
Progress | Episodes |
played |
Date Last Played | Artists, Albums, Tracks |
plays |
Number of Plays | Movies, Episodes, Artists, Albums, Tracks |
unplayed |
Unplayed | Shows |
episode_added |
Last Episode Date Added | Shows |
added |
Date Added | Movies, Shows, Seasons, Episodes, Artists, Albums, Tracks |
viewed |
Date Last Viewed | Movies, Shows, Episodes |
rated |
Date Last Rated | Tracks |
popularity |
Popularity | Tracks |
resolution |
Resolution | Movies, Episodes |
bitrate |
Bitrate | Movies, Episodes, Tracks |
random |
Random | Movies, Shows, Seasons, Episodes, Artists, Albums, Tracks |
All library items¶
plex_all accepts a boolean. Use true to select the library, optionally narrowing
it with Kometa filters.
Selects items whose user rating is at least 9. true is an unquoted boolean and
9 is an inclusive numeric threshold. These are Kometa filters, rather than a
live Plex smart filter.
Specific identifiers¶
Neither ID builder guarantees a collection ordered like the input list.
Metadata IDs¶
plex_id accepts one value or a YAML list. Values are bare 24-character metadata
IDs or complete plex:// GUIDs. Missing library items are skipped with a warning.
Episode GUIDs, such as plex://episode/63e3eedd166819851638a317, are also supported
for show-part collections.
Selects two movies using different identifier forms. Replace the example values with Plex metadata identifiers for the items you want.
collections:
Selected Plex Movies:
plex_id:
- 5d7768243c3c2a001fbca85b
- plex://movie/5d776824880197001ec901ab
Rating keys¶
plex_rating_key accepts one numeric key or a YAML list. Keys are local to your
Plex server and may change if a library is rebuilt. Prefer plex_id when a stable
metadata identifier is available.
Selects items with local keys 123 and 456. Replace these integers with keys from your server; they are not IMDb, TMDb, or Plex metadata IDs.
Pilot episodes¶
Episode level required
plex_pilots requires builder_level: episode and a show library.
Selects the first episode of every show. true enables the builder; the
collection contains episodes rather than complete shows.
Watchlist¶
plex_watchlist takes a sort string, defaulting to added.asc.
Watchlist sort options¶
Append .asc or .desc to title, release, critic_rating, or added.
These sort by title, original release date, critic rating, or watchlist-added date.
Selects watchlist items highest critic rating first. Custom ordering preserves that order; synchronization aligns membership on Kometa runs.
collections:
My Watchlist:
plex_watchlist: critic_rating.desc
collection_order: custom
sync_mode: sync
Collectionless items¶
Selects items not in a collection, ignoring collections named by your exclusions. At least one exclusion is required. This is not needed with smart label collections.
| Attribute | Value | Ignores when checking membership |
|---|---|---|
exclude |
Collection title or YAML list | Named collections |
exclude_prefix |
Prefix or YAML list | Titles or sort titles starting with a prefix |
This can help when overlapping collection display modes expose or hide items unexpectedly. A broad Marvel Cinematic Universe collection can conflict with a hidden-items Iron Man collection. Set normal collections to hide their items, then use a hidden collection to hold items that should remain visible. See the Plex display issue discussion.
Builds a hidden collection of items that are collectionless after ignoring Marvel
Cinematic Universe and collections starting with !, +, or ~. These exclusions
apply to the membership check, rather than excluding movies from the result.