Dynamic Collection Types & Data¶
Every dynamic collection definition requires the type attribute which determines the attribute used to dynamically
create collections.
Depending on the type of dynamic collection, data is used to specify the options that are required to fulfill the
requirements of creating the collection.
tmdb_collection - Collections based on TMDb Collections.¶
type Value: tmdb_collection
data Value: Not Used
Valid Library Types: Movies
Key Values: TMDb Collection ID
Key Name Value: TMDb Collection Title
Default title_format: <<key_name>>
Default Template (Click to Expand)
tmdb_popular_people - Collections based on actors found on TMDb's Popular People List.¶
type Value: tmdb_popular_people
data Value: Number greater than 0
Valid Library Types: Movies and Shows
Key Values: TMDb Person ID
Key Name Value: TMDb Person Name
Default title_format: <<key_name>>
Default Template (Click to Expand)
original_language - Collections based on TMDb original languages.¶
type Value: original_language
data Value: Not Used
Valid Library Types: Movies and Shows
Key Values: ISO 639-1 Code
Key Name Value: ISO Language Name
Default title_format: <<key_name>> <<library_type>>s
Default Template (Click to Expand)
origin_country - Collections based on TMDb origin countries.¶
type Value: origin_country
data Value: Not Used
Valid Library Types: Shows
Key Values: ISO 3166-1 alpha-2 country code
Key Name Value: ISO Country Name
Default title_format: <<key_name>> <<library_type>>s
Default Template (Click to Expand)
imdb_awards - Collections based on IMDb Events by Year.¶
type Value: imdb_awards
data Value: Dictionary of Attributes
event_id - Determines the IMDb Event used.¶
Allowed Values: The ID found in the URLs linked on the IMDb Events Page.
(ex. ev0000003)
starting - Determines the starting year of the event to use.¶
Allowed Values: Number greater than 0, first, latest, relative first (first+#; where # is the number
of events past the first event), or relative latest (latest-#; where # is the number of events back from the
latest)
Default: first
ending - Determines the ending year of the event to use.¶
Allowed Values: Number greater than 0, first, latest, relative first (first+#; where # is the number
of events past the first event), or relative latest (latest-#; where # is the number of events back from the
latest)
Default: latest
increment - Determines amount incremented.¶
Allowed Values: Number greater than 0
Default: 1
Valid Library Types: Movies and Shows
Key Values: Award Year (sometimes this will look like 2003-2 if there are more than one award show that year)
Key Name Value: Award Year (sometimes this will look like 2003-2 if there are more than one award show that
year)
Default title_format: <<key_name>>
Default Template (Click to Expand)
letterboxd_user_lists - Collections based on the Lists of Letterboxd Users.¶
type Value: letterboxd_user_lists
data Value: Dictionary of Attributes
username - Determines the Usernames to scan for lists.¶
Allowed Values: Username or list of Usernames
sort_by - Determines the sort that the lists are returned.¶
Allowed Values: updated, name, popularity, newest, oldest
Default: updated
limit - Determines the number of lists to create collections for.¶
0 is all lists)
Allowed Values: Number 0 or greater
Default: 0
Valid Library Types: Movies
Key Values: Letterboxd List URL
Key Name Value: Letterboxd List Title
Default title_format: <<key_name>>
trakt_user_lists - Collections based on Trakt Lists by users.¶
me to
reference the authenticated user.
Warning
Requires Trakt Authentication to be configured within the Configuration File.
type Value: trakt_user_lists
data Value: List of Trakt Users (Use me to reference the authenticated user)
Valid Library Types: Movies and Shows
Key Values: Trakt List URL
Key Name Value: Trakt List Title
Default title_format: <<key_name>>
trakt_liked_lists - Collections based on liked Trakt Lists.¶
Warning
Requires Trakt Authentication to be configured within the Configuration File.
type Value: trakt_liked_lists
data Value: Not Used
Valid Library Types: Movies and Shows
Key Values: Trakt List URL
Key Name Value: Trakt List Title
Default title_format: <<key_name>>
trakt_people_list - Collections based on people on Trakt Lists.¶
Warning
Requires Trakt Authentication to be configured within the Configuration File.
type Value: trakt_people_list
data Value: List of Trakt URLs
Valid Library Types: Movies and Shows
Key Values: TMDb Person ID
Key Name Value: TMDb Person Name
Default title_format: <<key_name>>
Default Template (Click to Expand)
actor - Collections based on actor credits.¶
type Value: actor
data Value: Dictionary of Attributes
depth - Determines how many "top" acting credits per item.¶
Allowed Values: Number greater than 0
Default: 3
minimum - Determines the minimum number of "top" acting credits.¶
Warning
The number of "top" acting credits per item is determined by the depth value.
Allowed Values: Number greater than 0
Default: 3
limit - Determines the maximum number of actor collections to create.¶
Allowed Values: Number greater than 0
Default: None
Valid Library Types: Movies and Shows
Key Values: Person Name
Key Name Value: Person Name
Default title_format: <<key_name>>
Examples
This example creates a collection for each of the top 25 actors who appear in the "top" 5 acting credits of an item in the library.
dynamic_collections:
Top Actors: # mapping name does not matter just needs to be unique
type: actor
data:
depth: 5
limit: 25
This example creates a collection for each of the actors who appear in the "top" 5 acting credits of an item in the library for at least 20 items.
director - Collections based on directors.¶
type Value: director
data Value: Dictionary of Attributes
depth - Determines how many "top" directing credits per item.¶
Allowed Values: Number greater than 0
Default: 3
minimum - Determines the minimum number of "top" directing credits.¶
Warning
The number of "top" directing credits per item is determined by the depth value.
Allowed Values: Number greater than 0
Default: 3
limit - Determines the maximum number of director collections to create.¶
Allowed Values: Number greater than 0
Default: None
Valid Library Types: Movies
Key Values: Person Name
Key Name Value: Person Name
Default title_format: <<key_name>>
Examples
This example creates a collection for the each of the top 5 directors who appear as the "top" directing credits of movies.
dynamic_collections:
Top Directors: # mapping name does not matter just needs to be unique
type: director
data:
depth: 1
limit: 5
This example creates a collection for the each of the directors who appear as the "top" directing credits of movies the library for at least 10 movies.
writer - Collections based on writers.¶
type Value: writer
data Value: Dictionary of Attributes
depth - Determines how many "top" writing credits per item.¶
Allowed Values: Number greater than 0
Default: 3
minimum - Determines the minimum number of "top" writing credits.¶
Warning
The number of "top" writing credits per item is determined by the depth value.
Allowed Values: Number greater than 0
Default: 3
limit - Determines the maximum number of writer collections to create.¶
Allowed Values: Number greater than 0
Default: None
Valid Library Types: Movies
Key Values: Person Name
Key Name Value: Person Name
Default title_format: <<key_name>>
Examples
This example creates a collection for the each of the top 5 writers who appear as the "top" writing credits of movies.
dynamic_collections:
Top Writers: # mapping name does not matter just needs to be unique
type: writer
data:
depth: 1
limit: 5
This example creates a collection for the each of the writers who appear as the "top" writing credits of movies the library for at least 10 movies.
producer - Collections based on producers.¶
type Value: producer
data Value: Dictionary of Attributes
depth - Determines how many "top" producing credits per item.¶
Allowed Values: Number greater than 0
Default: 3
minimum - Determines the minimum number of "top" producing credits.¶
Warning
The number of "top" producing credits per item is determined by the depth value.
Allowed Values: Number greater than 0
Default: 3
limit - Determines the maximum number of producer collections to create.¶
Allowed Values: Number greater than 0
Default: None
Valid Library Types: Movies
Key Values: Person Name
Key Name Value: Person Name
Default title_format: <<key_name>>
Examples
This example creates a collection for the each of the top 5 producers who appear as the "top" producing credits of movies.
dynamic_collections:
Top Producers: # mapping name does not matter just needs to be unique
type: producer
data:
depth: 1
limit: 5
This example creates a collection for the each of the producers who appear as the "top" producing credits of movies the library for at least 10 movies.
genre - Collections based on genres.¶
type Value: genre
data Value: Not Used
Valid Library Types: Movies, Shows, Music, and Video
Key Values: Genre
Key Name Value: Genre
Default title_format: Top <<key_name>> <<library_type>>s
Default Template (Click to Expand)
album_genre - Collections based on album genres.¶
type Value: genre
data Value: Not Used
Valid Library Types: Music
Key Values: Genre
Key Name Value: Genre
Default title_format: Top <<key_name>> Albums
Default Template (Click to Expand)
content_rating - Collections based on content ratings.¶
type Value: content_rating
data Value: Not Used
Valid Library Types: Movies, Shows, and Video
Key Values: Content Rating
Key Name Value: Content Rating
Default title_format: Top <<key_name>> <<library_type>>s
Default Template (Click to Expand)
year - Collections based on years.¶
type Value: year
data Value: Not Used
Valid Library Types: Movies and Shows
Key Values: Year
Key Name Value: Year
Default title_format: Best <<library_type>>s of <<key_name>>
Default Template (Click to Expand)
episode_year - Collections based on episode year.¶
type Value: episode_year
data Value: Not Used
Valid Library Types: Shows
Key Values: Year
Key Name Value: Year
Default title_format: Best Episodes of <<key_name>>
Default Template (Click to Expand)
decade - Collections based on decades.¶
type Value: decade
data Value: Not Used
Valid Library Types: Movies and Shows
Key Values: Decade
Key Name Value: Decade with an s at the end
Default title_format: Best <<library_type>> of the <<key_name>>
Default Templates (Click to Expand)
country - Collections based on countries.¶
type Value: country
data Value: Not Used
Valid Library Types: Movies, Music, Video
Key Values: Country
Key Name Value: Country
Default title_format: Top <<key_name>> <<library_type>>s
Default Template (Click to Expand)
resolution - Collections based on resolutions.¶
type Value: resolution
data Value: Not Used
Valid Library Types: Movies and Shows
Key Values: Resolution
Key Name Value: Resolution
Default title_format: <<key_name>> <<library_type>>s
Default Template (Click to Expand)
subtitle_language - Collections based on subtitle languages.¶
type Value: subtitle_language
data Value: Not Used
Valid Library Types: Movies and Shows
Key Values: ISO 639-1 Code
Key Name Value: ISO Language Name
Default title_format: Top <<key_name>> <<library_type>>s
Default Template (Click to Expand)
audio_language - Collections based on audio languages.¶
type Value: audio_language
data Value: Not Used
Valid Library Types: Movies and Shows
Key Values: ISO 639-1 Code
Key Name Value: ISO Language Name
Default title_format: Top <<key_name>> <<library_type>>s
Default Template (Click to Expand)
studio - Collections based on studios.¶
type Value: studio
data Value: Not Used
Valid Library Types: Movies and Shows
Key Values: Studio
Key Name Value: Studio
Default title_format: Top <<key_name>> <<library_type>>s
Default Template (Click to Expand)
edition - Collections based on editions.¶
type Value: edition
data Value: Not Used
Valid Library Types: Movies
Key Values: Edition
Key Name Value: Edition
Default title_format: Top <<key_name>> <<library_type>>s
Default Template (Click to Expand)
network - Collections based on networks.¶
type Value: network
data Value: Not Used
Valid Library Types: Shows
Key Values: Network
Key Name Value: Network
Default title_format: Top <<key_name>> <<library_type>>s
Default Template (Click to Expand)
mood - Collections based on artist moods.¶
type Value: mood
data Value: Not Used
Valid Library Types: Music
Key Values: Mood
Key Name Value: Mood
Default title_format: Most Played <<key_name>> Artists
Default Template (Click to Expand)
album_mood - Collections based on album moods.¶
type Value: album_mood
data Value: Not Used
Valid Library Types: Music
Key Values: Mood
Key Name Value: Mood
Default title_format: Most Played <<key_name>> Albums
Default Template (Click to Expand)
track_mood - Collections based on track moods.¶
type Value: track_mood
data Value: Not Used
Valid Library Types: Music
Key Values: Mood
Key Name Value: Mood
Default title_format: Most Played <<key_name>> Tracks
Default Template (Click to Expand)
style - Collections based on artist styles.¶
type Value: style
data Value: Not Used
Valid Library Types: Music
Key Values: Style
Key Name Value: Style
Default title_format: Most Played <<key_name>> Artists
Default Template (Click to Expand)
album_style - Collections based on album styles.¶
type Value: album_style
data Value: Not Used
Valid Library Types: Music
Key Values: Style
Key Name Value: Style
Default title_format: Most Played <<key_name>> Artists
Default Template (Click to Expand)
number - Collections based on defined numbers.¶
type Value: number
data Value: Dictionary of Attributes
starting - Determines the starting number.¶
Allowed Values: Number greater than 0, current_year, or relative year current_year-# (# is the number
of years back from the current year)
Default: 0
ending - Determines the ending number.¶
Allowed Values: Number greater than 1, current_year, or relative year current_year-# (# is the number
of years back from the current year)
Default: 1
increment - Determines amount incremented.¶
Allowed Values: Number greater than 0
Default: 1
Valid Library Types: Movies, Shows, Music, and Video
Key Values: Number
Key Name Value: Number
Default title_format: <<key_name>>
Warning
There's no default template for this type one has to be specified.
Example
This example create a collection for the Oscar Winner by Year for the last 5 years and names the collection "Oscars Winners [Number]".
templates:
Oscars:
summary: Academy Awards (Oscars) Winners for <<key>>
imdb_search:
release.after: <<key>>-01-01
release.before: <<key>>-12-31
event.winning: oscar_picture, oscar_director
sort_by: popularity.asc
sync_mode: sync
collection_order: custom
dynamic_collections:
Oscars Winners Awards:
type: number
sync: true
data:
starting: current_year-5
ending: current_year
title_format: Oscars Winners <<key_name>>
template:
- Oscars
custom - Collections based on given values.¶
dynamic key: key_name pair defined.
type Value: custom
data Value: Dictionary with the keys being the dynamic key and the values
being the key name
Valid Library Types: Movies, Shows, Music, and Video
Key Values: dynamic key
Key Name Value: key_name
Default title_format: <<key_name>>
Warning
There's no default template for this type one has to be specified.
Example
This example creates a collection for the various Streaming Services and names them "[Key Name] Movies".
templates:
streaming:
cache_builders: 1
smart_label: release.desc
sync_mode: sync
mdblist_list: https://mdblist.com/lists/k0meta/<<key>>-movies
url_poster: https://raw.githubusercontent.com/Kometa-Team/Default-Images/master/streaming/<<key_name_encoded>>.jpg
dynamic_collections:
Streaming:
type: custom
data:
all-4: All 4
appletv: Apple TV+
bet: BET+
itvx: ITVX
disney: Disney+
hbo-max: HBO Max
hulu: Hulu
netflix: Netflix
now: NOW
paramount: Paramount+
peacock: Peacock
amazon-prime-video: Prime Video
title_format: <<key_name>> Movies
template:
- streaming
- shared
Dynamic Collection Examples¶
Example
templates:
genre collection: #(4)!
smart_filter:
limit: 100
sort_by: critic_rating.desc
all:
genre: <<value>>
dynamic_collections:
Genres:
type: genre #(1)!
exclude: #(2)!
- Talk Show
template: genre collection #(3)!
- Uses the
genretype to create dynamic collections based on each genre found in the library. - Uses
excludeto exclude theTalk Showgenre. - Uses the template called
genre collectionfor these collections. - This is the same template as the default for
genrebut thelimithas been increased to 100 from 50.
Example:¶
- Create dynamic collections based on each genre found in the library (TV and Movies)
- Amend the template to increase the limit from 50 to 100
- Exclude the "Talk Show" genre
- Name the collection "Top [Genre] Movies" or "Top [Genre] Shows"
templates:
genre collection:
smart_filter:
limit: 100
sort_by: critic_rating.desc
all:
genre: <<value>>
dynamic_collections:
Genres: # mapping name does not matter just needs to be unique
type: genre
exclude:
- Talk Show
title_format: Top <<key_name>> <<library_type>>s
template: genre collection
Example:¶
- Create dynamic collections based on each content rating found in the library (TV and Movies)
- Amend the template to increase the limit from 50 to 100
templates:
content rating collection:
smart_filter:
limit: 100
sort_by: critic_rating.desc
all:
content_rating: <<value>>
dynamic_collections:
Content Ratings: # mapping name does not matter just needs to be unique
type: content_rating
template: content rating collection
Example¶
- Create dynamic collections based on each year found in the library (TV and Movies)
- Use the
includeattribute to only show collections for years "2020", "2021" and "2022" - Name the collection "Best of [Year]"
dynamic_collections:
Years: # mapping name does not matter just needs to be unique
type: year
include:
- 2020
- 2021
- 2022
title_format: Best of <<key_name>>
Example:¶
- Create a collection for each decade found in the library (TV and Movies)
- Name the collection "Top [Decade] Movies"
- Rename the
2020collection name to "Top 2020 Movies (so far)"
dynamic_collections:
Decades: # mapping name does not matter just needs to be unique
type: decade
title_format: Top <<key_name>> <<library_type>>s
title_override:
2020: Top 2020 Movies (so far)
Example:¶
- Create a collection for the top movies from each country found in the library
- Name the collection "Top [Country] Cinema"
- The
key_name_overrideattribute is used here in combination with thetitle_formatto change the collection name from "France" which would be the default title, to "Top French Cinema"
dynamic_collections:
Countries: # mapping name does not matter just needs to be unique
type: country
title_format: Top <<key_name>> Cinema
key_name_override:
France: French
Germany: German
India: Indian
Example:¶
- Create a collection for each resolution found in the library
- Name the collection "[Resolution] Movies"
- Combine 480p, 576p and SD into a collection called "SD Movies"
Example:¶
- Create a collection for the top 20 artists for each mood found in the Music library
- Amend the template to increase the limit from 10 to 20
- Name the collection "Top 20 [Mood] Artists"
templates:
mood collection:
smart_filter:
limit: 20
sort_by: plays.desc
all:
artist_mood: <<value>>
dynamic_collections:
Moods: # mapping name does not matter just needs to be unique
type: mood
title_format: Top 20 <<key_name>> Artists
template: mood collection
Example:¶
- Create a collection for the top 20 albums for each mood found in the Music library
- Amend the template to increase the limit from 10 to 20
- Name the collection "Top 20 [Mood] Albums"
templates:
mood collection:
smart_filter:
limit: 20
sort_by: plays.desc
all:
album_mood: <<value>>
dynamic_collections:
Moods: # mapping name does not matter just needs to be unique
type: album_mood
title_format: Top 20 <<key_name>> Albums
template: mood collection
Example:¶
- Create a collection for the top 100 tracks for each mood found in the Music library
- Amend the template to increase the limit from 50 to 100
- Name the collection "Top 100 [Mood] Tracks"
templates:
mood collection:
smart_filter:
limit: 100
sort_by: plays.desc
all:
track_mood: <<value>>
dynamic_collections:
Moods: # mapping name does not matter just needs to be unique
type: track_mood
title_format: Top 100 <<key_name>> Tracks
template: mood collection
Example:¶
- Create a collection for the top 10 artists for each style found in the Music library
- Name the collection "Top [Style] Artists"
templates:
style collection:
smart_filter:
limit: 10
sort_by: plays.desc
all:
artist_style: <<value>>
dynamic_collections:
Styles: # mapping name does not matter just needs to be unique
type: style
title_format: Top <<key_name>> <<library_type>>
template: style collection
Example:¶
- Create a collection for the top 10 albums for each style found in the Music library
- Name the collection "Top [Style] Albums"