2022-03-08 08:06:22 +00:00
# Dynamic Collections
Plex Meta Manager can dynamically create collections based on different criteria, such as
2022-03-09 23:59:31 +00:00
* Collections based on the Collections from TMDb for every item in the library. ([Star Wars](https://www.themoviedb.org/collection/10-star-wars-collection), [Harry Potter ](https://www.themoviedb.org/collection/1241 ), etc...)
2022-03-08 08:06:22 +00:00
* Collections based on each of a Users Trakt Lists
* Collections for the top `X` popular people on TMDb (Bruce Willis, Tom Hanks, etc...)
* Collections for each decade represented in the library (Best of 1990s, Best of 2000s, etc...)
* Collections for each of the moods/styles within a Music library (A Cappella, Pop Rock, etc...)
The main purpose of dynamic collections is to automate the creation of collections which would otherwise require considerable user input and repetition (such as creating a collection for every genre).
Each dynamic collection must have a mapping name (just like standard collections), which is also attached to the collection as a label to mark it as having been created by this dynamic collection.
This example will create a collection for every TMDb Collection associated with items in the library.
```yaml
dynamic_collections:
TMDb Collections: # This name is the mapping name
2022-03-21 17:35:21 +00:00
type: tmdb_collection
2022-03-08 08:06:22 +00:00
remove_suffix: "Collection"
```
## Collection Naming
By default, the collections generated will be named for the thing being used to create them; things like genres, countries, actors or even Trakt List Names.
2022-03-11 07:07:37 +00:00
There are many attributes that can change the titles, including `title_format` , `remove_suffix` , `remove_prefix` , `key_name_override` , and `title_override` all detailed below.
2022-03-08 08:06:22 +00:00
2022-03-10 19:25:02 +00:00
## Dynamic Keys & Key Names
2022-03-08 08:06:22 +00:00
A `dynamic key` or `key` for short is used to refer to a specific value/result from the dynamic collection criteria that will be used to create the collection.
2022-03-10 19:25:02 +00:00
A `key_name` is the name that replaces `<<key_name>>` in `title_format` to create the collection titles for each key.
2022-03-08 08:06:22 +00:00
2022-03-21 17:35:21 +00:00
An example of some keys and their names that would be generated from a `tmdb_collection` dynamic collection are
2022-03-10 19:25:02 +00:00
* `key` : "10"
* `key_name` : Star Wars Collection
* `key` : "1241"
* `key_name` : Harry Potter Collection
2022-03-08 08:06:22 +00:00
### Example Key Usage
Keys can be used for a number of purposes, examples can be found throughout this page. A few examples are shown below:
* Excluding the "Horror" key from the `Genre` dynamic collection definition
```yaml
dynamic_collections:
Genres: # mapping name does not matter, just needs to be unique
type: genre
exclude:
- Horror
```
2022-03-11 07:07:37 +00:00
* Using the `key_name_override` attribute to change the formatting of "France" to "French" so that a collection can be named "French Cinema" instead of simply "France"
2022-03-08 08:06:22 +00:00
* This particular example also uses the `title_format` attribute to manipulate the naming convention of the collections.
```yaml
dynamic_collections:
Countries: # mapping name does not matter, just needs to be unique
type: country
2022-03-19 16:02:52 +00:00
title_format: < < key_name > > Cinema
2022-03-11 07:07:37 +00:00
key_name_override:
2022-03-08 08:06:22 +00:00
France: French
```
2022-03-11 21:48:27 +00:00
* Using the `addons` attribute to combine multiple `keys` , i.e. merging "MTV2", "MTV3" and "MTV (UK)" into one "MTV" collection.
* When doing this, individual collections will not be created for the individual MTV collections, instead they will be merged within the "MTV" collection.
2022-03-08 08:06:22 +00:00
```yaml
dynamic_collections:
networks:
type: network
2022-03-10 18:28:56 +00:00
addons:
2022-03-11 21:48:27 +00:00
MTV:
2022-03-10 18:28:56 +00:00
- MTV2
- MTV3
- MTV (UK)
2022-03-08 08:06:22 +00:00
```
## Attributes
2022-03-11 07:07:37 +00:00
| Attribute | Description | Required |
|:--------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------|:-----------------:|
| [`type` ](#type--data ) | Type of Dynamic Collection to be created. | ✅ |
| [`data` ](#type--data ) | Data to determine how dynamic collections with a certain `type` are created. | Depends on `type` |
| [`exclude` ](#exclude ) | Exclude this list of keys from being created into collections. | ❌ |
| [`addons` ](#addons ) | Defines how multiple keys can be combined under a parent key. | ❌ |
| [`template` ](#template ) | Name of the template to use for these dynamic collections. | ❌ |
| [`template_variables` ](#template-variables ) | Defines how template variables can be defined by key. | ❌ |
2022-04-05 20:38:53 +00:00
| [`other_template` ](#other-template ) | Name of the template to use for the other collection. | ❌ |
2022-03-11 07:07:37 +00:00
| [`remove_suffix` ](#remove-prefixsuffix ) | Removes the defined suffixes from the key before it's used in the collection title. | ❌ |
| [`remove_prefix` ](#remove-prefixsuffix ) | Removes the defined prefixes from the key before it's used in the collection title. | ❌ |
| [`title_format` ](#title-format ) | This is the format for the collection titles. | ❌ |
| [`key_name_override` ](#key-name-override ) | Defines how key names can be overridden before they are formatted into collection titles. | ❌ |
| [`title_override` ](#title-override ) | Defines how collection titles can be overridden ignoring title formatting. | ❌ |
2022-11-11 06:57:22 +00:00
| [`custom_keys` ](#custom-keys ) | Defines if custom keys are allowed. | ❌ |
2022-03-11 07:07:37 +00:00
| [`test` ](#test ) | Will add `test: true` to all collections for test runs. | ❌ |
| [`sync` ](#sync ) | Will remove dynamic collections that are no longer in the creation list. | ❌ |
| [`include` ](#include ) | Define a list of keys to be made into collections. | ❌ |
| [`other_name` ](#other-name ) | Used in combination with `include` . When defined, all keys not in `include` or `addons` will be combined into this collection. | ❌ |
2022-03-08 08:06:22 +00:00
## Type & Data
Specifies the type of dynamic collection to be created.
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.
| Type Option | Description | Uses< br > `data` | Movies | Shows | Music | Video |
|:----------------------------------------------|:------------------------------------------------------------------------------------------------------------|:--------------:|:--------:|:--------:|:--------:|:--------:|
| [`tmdb_collection` ](#tmdb-collection ) | Create a collection for each TMDb Collection associated with an item in the library | ❌ | ✅ | ❌ | ❌ | ❌ |
| [`tmdb_popular_people` ](#tmdb-popular-people ) | Create a collection for each actor found on [TMDb's Popular People List ](https://www.themoviedb.org/person ) | ✅ | ✅ | ✅ | ❌ | ❌ |
2022-03-08 16:56:48 +00:00
| [`original_language` ](#original-language ) | Create a collection for each TMDb original language associated with an item in the library | ❌ | ✅ | ✅ | ❌ | ❌ |
2022-03-11 07:07:37 +00:00
| [`origin_country` ](#origin-country ) | Create a collection for each TMDb origin country associated with an item in the library | ❌ | ❌ | ✅ | ❌ | ❌ |
2022-03-08 08:06:22 +00:00
| [`trakt_user_lists` ](#trakt-user-lists ) | Create a collection for each list from specific trakt users | ✅ | ✅ | ✅ | ❌ | ❌ |
| [`trakt_liked_lists` ](#trakt-liked-lists ) | Create a collection for each list the authenticated trakt user likes | ❌ | ✅ | ✅ | ❌ | ❌ |
| [`trakt_people_list` ](#trakt-people-lists ) | Create a collection for each actor found in the trakt list | ✅ | ✅ | ✅ | ❌ | ❌ |
| [`actor` ](#actor ) | Create a collection for each actor found in the library | ✅ | ✅ | ✅ | ❌ | ❌ |
2022-03-10 18:28:56 +00:00
| [`director` ](#director ) | Create a collection for each director found in the library | ✅ | ✅ | ❌ | ❌ | ❌ |
| [`writer` ](#writer ) | Create a collection for each writer found in the library | ✅ | ✅ | ❌ | ❌ | ❌ |
| [`producer` ](#producer ) | Create a collection for each producer found in the library | ✅ | ✅ | ❌ | ❌ | ❌ |
2022-03-08 08:06:22 +00:00
| [`genre` ](#genre ) | Create a collection for each genre found in the library | ❌ | ✅ | ✅ | ✅ | ✅ |
2022-12-02 17:08:01 +00:00
| [`album_genre` ](#album-genre ) | Create a collection for each album genre found in the library | ❌ | ❌ | ❌ | ✅ | ❌ |
2022-03-11 15:33:22 +00:00
| [`content_rating` ](#content-rating ) | Create a collection for each content rating found in the library | ❌ | ✅ | ✅ | ❌ | ✅ |
2022-03-08 08:06:22 +00:00
| [`year` ](#year ) | Create a collection for each year found in the library | ❌ | ✅ | ✅ | ❌ | ❌ |
2022-03-27 06:26:08 +00:00
| [`decade` ](#decade ) | Create a collection for each decade found in the library | ❌ | ✅ | ✅ | ❌ | ❌ |
2022-03-08 08:06:22 +00:00
| [`country` ](#country ) | Create a collection for each country found in the library | ❌ | ✅ | ❌ | ✅ | ✅ |
2022-03-25 22:42:03 +00:00
| [`resolution` ](#resolution ) | Create a collection for each resolution found in the library | ❌ | ✅ | ✅ | ❌ | ❌ |
| [`subtitle_language` ](#subtitle-language ) | Create a collection for each subtitle language found in the library | ❌ | ✅ | ✅ | ❌ | ❌ |
| [`audio_language` ](#audio-language ) | Create a collection for each audio language found in the library | ❌ | ✅ | ✅ | ❌ | ❌ |
| [`studio` ](#studio ) | Create a collection for each studio found in the library | ❌ | ✅ | ✅ | ❌ | ❌ |
2022-09-20 02:46:52 +00:00
| [`edition` ](#edition ) | Create a collection for each edition found in the library | ❌ | ✅ | ❌ | ❌ | ❌ |
2022-03-08 08:06:22 +00:00
| [`network` ](#network ) | Create a collection for each network found in the library | ❌ | ❌ | ✅ | ❌ | ❌ |
2022-12-02 17:08:01 +00:00
| [`mood` ](#mood ) | Create a collection for each artist mood found in the library | ❌ | ❌ | ❌ | ✅ | ❌ |
| [`album_mood` ](#album-mood ) | Create a collection for each album mood found in the library | ❌ | ❌ | ❌ | ✅ | ❌ |
| [`track_mood` ](#track-mood ) | Create a collection for each track mood found in the library | ❌ | ❌ | ❌ | ✅ | ❌ |
2022-07-18 15:44:16 +00:00
| [`style` ](#style ) | Create a collection for each artist style found in the library | ❌ | ❌ | ❌ | ✅ | ❌ |
| [`album_style` ](#album-style ) | Create a collection for each album style found in the library | ❌ | ❌ | ❌ | ✅ | ❌ |
2022-05-11 06:40:50 +00:00
| [`number` ](#number ) | Creates a collection for each number defined | ✅ | ✅ | ✅ | ✅ | ✅ |
2022-05-23 18:42:27 +00:00
| [`custom` ](#custom ) | Creates a collection for each custom `key: key_name` pair defined. | ✅ | ✅ | ✅ | ✅ | ✅ |
2022-03-08 08:06:22 +00:00
### TMDb Collection
Create collections based on the TMDb Collections associated with items in the library.
< table class = "dualTable colwidths-auto align-default table" >
< tr >
< th > < code > type< / code > Option< / th >
< td > < code > tmdb_collection< / code > < / td >
< / tr >
< tr >
< th > < code > data< / code > Value< / th >
< td > Not Used< / td >
< / tr >
< tr >
< th > Keys< / th >
< td > TMDb Collection ID< / td >
< / tr >
< tr >
2022-03-11 07:07:37 +00:00
< th > Key Names< / th >
2022-03-08 08:06:22 +00:00
< td > TMDb Collection Title< / td >
< / tr >
< tr >
< th > Default < code > title_format< / code > < / th >
2022-03-19 16:02:52 +00:00
< td > < code > < < key_name> > < / code > < / td >
2022-03-08 08:06:22 +00:00
< / tr >
< tr >
< th > Default Template< / th >
< td >
```yaml
default_template:
2022-03-19 16:02:52 +00:00
tmdb_collection_details: < < value > >
2022-03-25 22:42:03 +00:00
minimum_items: 2
2022-03-08 08:06:22 +00:00
```
< / td >
< / tr >
< / table >
#### Example: Create collection for every TMDb Collection found in the library.
```yaml
dynamic_collections:
TMDb Collections: # This name is the mapping name
2022-03-21 17:35:21 +00:00
type: tmdb_collection
2022-03-08 08:06:22 +00:00
remove_suffix: Collection
remove_prefix: The
```
### TMDb Popular People
Create collections based on each actor found on [TMDb's Popular People List ](https://www.themoviedb.org/person ).
< table class = "dualTable colwidths-auto align-default table" >
< tr >
< th > < code > type< / code > Option< / th >
< td > < code > tmdb_popular_people< / code > < / td >
< / tr >
< tr >
< th > < code > data< / code > Value< / th >
2022-05-11 15:55:07 +00:00
< td > Number greater than 0< / td >
2022-03-08 08:06:22 +00:00
< / tr >
< tr >
< th > Keys< / th >
< td > TMDb Person ID< / td >
< / tr >
< tr >
2022-03-11 07:07:37 +00:00
< th > Key Names< / th >
2022-03-08 08:06:22 +00:00
< td > TMDb Person Name< / td >
< / tr >
< tr >
< th > Default < code > title_format< / code > < / th >
2022-03-19 16:02:52 +00:00
< td > < code > < < key_name> > < / code > < / td >
2022-03-08 08:06:22 +00:00
< / tr >
< tr >
< th > Default Template< / th >
< td >
```yaml
default_template:
2022-03-19 16:02:52 +00:00
tmdb_person: < < value > >
2022-03-08 08:06:22 +00:00
plex_search:
all:
actor: tmdb
```
< / td >
< / tr >
< / table >
#### Example: Create collection for the top 10 popular people
```yaml
dynamic_collections:
TMDb Popular People: # This name is the mapping name
type: tmdb_popular_people
data: 10
```
2022-03-08 16:56:48 +00:00
### Original Language
Create collections based on the TMDb original language associated with items in the library.
< table class = "dualTable colwidths-auto align-default table" >
< tr >
< th > < code > type< / code > Option< / th >
< td > < code > original_language< / code > < / td >
< / tr >
< tr >
< th > < code > data< / code > Value< / th >
< td > Not Used< / td >
< / tr >
< tr >
< th > Keys< / th >
< td > < a href = "https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes" > ISO 639-1 Code< / a > < / td >
< / tr >
< tr >
2022-03-11 07:07:37 +00:00
< th > Key Names< / th >
2022-03-08 16:56:48 +00:00
< td > ISO Language Name< / td >
< / tr >
< tr >
< th > Default < code > title_format< / code > < / th >
2022-03-19 16:02:52 +00:00
< td > < code > < < key_name> > < < library_type> > s< / code > < / td >
2022-03-08 16:56:48 +00:00
< / tr >
< tr >
< th > Default Template< / th >
< td >
```yaml
default_template:
plex_all: true
filters:
2022-03-19 16:02:52 +00:00
original_language: < < value > >
2022-03-08 16:56:48 +00:00
```
< / td >
< / tr >
< / table >
#### Example: Create collection for every TMDb Original Language found in the library.
```yaml
dynamic_collections:
TMDb Languages: # This name is the mapping name
type: original_language
```
2022-03-11 07:07:37 +00:00
### Origin Country
Create collections based on the TMDb origin country associated with items in the library.
< table class = "dualTable colwidths-auto align-default table" >
< tr >
< th > < code > type< / code > Option< / th >
< td > < code > origin_country< / code > < / td >
< / tr >
< tr >
< th > < code > data< / code > Value< / th >
< td > Not Used< / td >
< / tr >
< tr >
< th > Keys< / th >
< td > < a href = "https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2" > ISO 3166-1 alpha-2 country code< / a > < / td >
< / tr >
< tr >
< th > Key Names< / th >
< td > ISO Country Name< / td >
< / tr >
< tr >
< th > Default < code > title_format< / code > < / th >
2022-03-19 16:02:52 +00:00
< td > < code > < < key_name> > < < library_type> > s< / code > < / td >
2022-03-11 07:07:37 +00:00
< / tr >
< tr >
< th > Default Template< / th >
< td >
```yaml
default_template:
plex_all: true
filters:
2022-03-19 16:02:52 +00:00
origin_country: < < value > >
2022-03-11 07:07:37 +00:00
```
< / td >
< / tr >
< / table >
#### Example: Create collection for every TMDb Origin Country found in the library.
```yaml
dynamic_collections:
TMDb Countries: # This name is the mapping name
type: origin_country
```
2022-03-08 16:56:48 +00:00
2022-03-08 08:06:22 +00:00
### Trakt User Lists
Create collections for each of the Trakt lists for the specified users. Use `me` to reference the authenticated user.
* Requires [Trakt Authentication ](../config/trakt ) to be configured within the Configuration File
< table class = "dualTable colwidths-auto align-default table" >
< tr >
< th > < code > type< / code > Option< / th >
< td > < code > trakt_user_lists< / code > < / td >
< / tr >
< tr >
< th > < code > data< / code > Value< / th >
< td > List of Trakt Users< / td >
< / tr >
< tr >
< th > Keys< / th >
< td > Trakt List URL< / td >
< / tr >
< tr >
2022-03-11 07:07:37 +00:00
< th > Key Names< / th >
2022-03-08 08:06:22 +00:00
< td > Trakt List Title< / td >
< / tr >
< tr >
< th > Default < code > title_format< / code > < / th >
2022-03-19 16:02:52 +00:00
< td > < code > < < key_name> > < / code > < / td >
2022-03-08 08:06:22 +00:00
< / tr >
< tr >
< th > Default Template< / th >
< td >
```yaml
default_template:
2022-03-19 16:02:52 +00:00
trakt_list_details: < < value > >
2022-03-08 08:06:22 +00:00
```
< / td >
< / tr >
< / table >
#### Example: Create collections for each of the lists that the users have created
```yaml
dynamic_collections:
Trakt User Lists: # This name is the mapping name
type: trakt_user_lists
data:
- me
- yozoraxcii
```
### Trakt Liked Lists
Create collections for each of the Trakt lists that the authenticated user has liked.
* Requires [Trakt Authentication ](../config/trakt ) to be configured within the Configuration File
< table class = "dualTable colwidths-auto align-default table" >
< tr >
< th > < code > type< / code > Option< / th >
< td > < code > trakt_liked_lists< / code > < / td >
< / tr >
< tr >
< th > < code > data< / code > Value< / th >
< td > Not Used< / td >
< / tr >
< tr >
< th > Keys< / th >
< td > Trakt List URL< / td >
< / tr >
< tr >
2022-03-11 07:07:37 +00:00
< th > Key Names< / th >
2022-03-08 08:06:22 +00:00
< td > Trakt List Title< / td >
< / tr >
< tr >
< th > Default < code > title_format< / code > < / th >
2022-03-19 16:02:52 +00:00
< td > < code > < < key_name> > < / code > < / td >
2022-03-08 08:06:22 +00:00
< / tr >
< tr >
< th > Default Template< / th >
< td >
```yaml
default_template:
2022-03-19 16:02:52 +00:00
trakt_list_details: < < value > >
2022-03-08 08:06:22 +00:00
```
< / td >
< / tr >
< / table >
#### Example: Create collections for each of the lists that the user has liked within Trakt
```yaml
dynamic_collections:
Trakt Liked Lists: # This name is the mapping name
type: trakt_liked_lists
```
### Trakt People Lists
Create collections for each of the people found within Trakt lists that the user specifies.
* Requires [Trakt Authentication ](../config/trakt ) to be configured within the Configuration File
< table class = "dualTable colwidths-auto align-default table" >
< tr >
< th > < code > type< / code > Option< / th >
< td > < code > trakt_user_lists< / code > < / td >
< / tr >
< tr >
< th > < code > data< / code > Value< / th >
< td > List of Trakt URLs< / td >
< / tr >
< tr >
< th > Keys< / th >
< td > TMDb Person ID< / td >
< / tr >
< tr >
2022-03-11 07:07:37 +00:00
< th > Key Names< / th >
2022-03-08 08:06:22 +00:00
< td > TMDb Person Name< / td >
< / tr >
< tr >
< th > Default < code > title_format< / code > < / th >
2022-03-19 16:02:52 +00:00
< td > < code > < < key_name> > < / code > < / td >
2022-03-08 08:06:22 +00:00
< / tr >
< tr >
< th > Default Template< / th >
< td >
```yaml
default_template:
2022-03-19 16:02:52 +00:00
tmdb_person: < < value > >
2022-03-08 08:06:22 +00:00
plex_search:
all:
actor: tmdb
```
< / td >
< / tr >
< / table >
#### Example: Create a collection for each of the people on the trakt list
```yaml
dynamic_collections:
Trakt User Lists:
type: trakt_people_lists
data:
- https://trakt.tv/users/ash9001/lists/all-time-top-actors
```
### Actor
Create a collection for each actor found in the library.
< table class = "dualTable colwidths-auto align-default table" >
< tr >
< th > < code > type< / code > Option< / th >
< td > < code > actor< / code > < / td >
< / tr >
< tr >
< th > < code > data< / code > Values< / th >
< td >
< table class = "clearTable" >
< tr >
< th > Attribute< / th >
< th > Description & Values< / th >
< / tr >
< tr >
2022-03-10 18:28:56 +00:00
< td > < code > depth< / code > < / td >
2022-05-11 15:55:07 +00:00
< td > < strong > Values:< / strong > Number greater than 0< / td >
2022-03-08 08:06:22 +00:00
< td > < strong > Default:< / strong > 3< / td >
< / tr >
< tr >
2022-03-10 18:28:56 +00:00
< td > < code > minimum< / code > < / td >
2022-05-11 15:55:07 +00:00
< td > < strong > Values:< / strong > Number greater than 0< / td >
2022-03-08 08:06:22 +00:00
< td > < strong > Default:< / strong > 3< / td >
< / tr >
< tr >
2022-03-10 18:28:56 +00:00
< td > < code > limit< / code > < / td >
2022-05-11 15:55:07 +00:00
< td > < strong > Values:< / strong > Number greater than 0< / td >
2022-03-08 08:06:22 +00:00
< td > < strong > Default:< / strong > None< / td >
< / tr >
< / table >
< / td >
< / tr >
< tr >
< th > Keys< / th >
2022-04-05 20:38:53 +00:00
< td > Person Name< / td >
2022-03-08 08:06:22 +00:00
< / tr >
< tr >
2022-03-11 07:07:37 +00:00
< th > Key Names< / th >
2022-04-05 20:38:53 +00:00
< td > Person Name< / td >
2022-03-08 08:06:22 +00:00
< / tr >
< tr >
< th > Default < code > title_format< / code > < / th >
2022-03-19 16:02:52 +00:00
< td > < code > < < key_name> > < / code > < / td >
2022-03-08 08:06:22 +00:00
< / tr >
< tr >
< th > Default Template< / th >
< td >
```yaml
default_template:
plex_search:
2022-04-05 20:38:53 +00:00
any:
actor: < < value > >
2022-03-08 08:06:22 +00:00
```
< / td >
< / tr >
< / table >
2022-03-10 18:28:56 +00:00
* `depth` determines how many top billed actor per item they are in. (i.e. if they play a cameo role, this is unlikely to be counted)
* `minimum` determines the minimum number of times the actor must appear within `depth` for the collection to be created.
* `limit` determines the number of actor collection to max out at. (i.e. if to make collections for the top 25 actors)
2022-03-11 07:07:37 +00:00
#### Example:
* Create a collection for the top 25 actors who appear in the top 5 billing credits of movies
```yaml
dynamic_collections:
Top Actors: # mapping name does not matter just needs to be unique
type: actor
data:
depth: 5
limit: 25
```
#### Example:
* Create a collection for actors who appear in the top 5 billing credits of movies
* Only create the collection if they are in the top 5 billing credits of at least 20 movies
```yaml
dynamic_collections:
Actors: # mapping name does not matter just needs to be unique
type: actor
data:
depth: 5
minimum: 20
```
2022-03-10 18:28:56 +00:00
### Director
Create a collection for each director found in the library.
< table class = "dualTable colwidths-auto align-default table" >
< tr >
< th > < code > type< / code > Option< / th >
< td > < code > director< / code > < / td >
< / tr >
< tr >
< th > < code > data< / code > Values< / th >
< td >
< table class = "clearTable" >
< tr >
< th > Attribute< / th >
< th > Description & Values< / th >
< / tr >
< tr >
< td > < code > depth< / code > < / td >
2022-05-11 15:55:07 +00:00
< td > < strong > Values:< / strong > Number greater than 0< / td >
2022-03-10 18:28:56 +00:00
< td > < strong > Default:< / strong > 3< / td >
< / tr >
< tr >
< td > < code > minimum< / code > < / td >
2022-05-11 15:55:07 +00:00
< td > < strong > Values:< / strong > Number greater than 0< / td >
2022-03-10 18:28:56 +00:00
< td > < strong > Default:< / strong > 3< / td >
< / tr >
< tr >
< td > < code > limit< / code > < / td >
2022-05-11 15:55:07 +00:00
< td > < strong > Values:< / strong > Number greater than 0< / td >
2022-03-10 18:28:56 +00:00
< td > < strong > Default:< / strong > None< / td >
< / tr >
< / table >
< / td >
< / tr >
< tr >
< th > Keys< / th >
2022-04-05 20:38:53 +00:00
< td > Person Name< / td >
2022-03-10 18:28:56 +00:00
< / tr >
< tr >
2022-03-11 07:07:37 +00:00
< th > Key Names< / th >
2022-04-05 20:38:53 +00:00
< td > Person Name< / td >
2022-03-10 18:28:56 +00:00
< / tr >
< tr >
< th > Default < code > title_format< / code > < / th >
2022-03-19 16:02:52 +00:00
< td > < code > < < key_name> > < / code > < / td >
2022-03-10 18:28:56 +00:00
< / tr >
< tr >
< th > Default Template< / th >
< td >
```yaml
default_template:
plex_search:
2022-04-05 20:38:53 +00:00
any:
director: < < value > >
2022-03-10 18:28:56 +00:00
```
< / td >
< / tr >
< / table >
* `depth` determines how many directors are looked at per item.
* `minimum` determines the minimum number of times the director must appear within `depth` for the collection to be created.
* `limit` determines the number of director collection to max out at. (i.e. if to make collections for the top 25 directors)
2022-03-11 07:07:37 +00:00
#### Example:
* Create a collection for the top 5 directors who appear in the top director credit of movies
```yaml
dynamic_collections:
Top Directors: # mapping name does not matter just needs to be unique
type: director
data:
depth: 1
limit: 5
```
#### Example:
* Create a collection for directors who appear in the top director credits of movies
* Only create the collection if they are in the top director credits of at least 10 movies
```yaml
dynamic_collections:
Directors: # mapping name does not matter just needs to be unique
type: director
data:
depth: 1
minimum: 10
```
2022-03-10 18:28:56 +00:00
### Writer
Create a collection for each writer found in the library.
< table class = "dualTable colwidths-auto align-default table" >
< tr >
< th > < code > type< / code > Option< / th >
< td > < code > writer< / code > < / td >
< / tr >
< tr >
< th > < code > data< / code > Values< / th >
< td >
< table class = "clearTable" >
< tr >
< th > Attribute< / th >
< th > Description & Values< / th >
< / tr >
< tr >
< td > < code > depth< / code > < / td >
2022-05-11 15:55:07 +00:00
< td > < strong > Values:< / strong > Number greater than 0< / td >
2022-03-10 18:28:56 +00:00
< td > < strong > Default:< / strong > 3< / td >
< / tr >
< tr >
< td > < code > minimum< / code > < / td >
2022-05-11 15:55:07 +00:00
< td > < strong > Values:< / strong > Number greater than 0< / td >
2022-03-10 18:28:56 +00:00
< td > < strong > Default:< / strong > 3< / td >
< / tr >
< tr >
< td > < code > limit< / code > < / td >
2022-05-11 15:55:07 +00:00
< td > < strong > Values:< / strong > Number greater than 0< / td >
2022-03-10 18:28:56 +00:00
< td > < strong > Default:< / strong > None< / td >
< / tr >
< / table >
< / td >
< / tr >
< tr >
< th > Keys< / th >
2022-04-05 20:38:53 +00:00
< td > Person Name< / td >
2022-03-10 18:28:56 +00:00
< / tr >
< tr >
2022-03-11 07:07:37 +00:00
< th > Key Names< / th >
2022-04-05 20:38:53 +00:00
< td > Person Name< / td >
2022-03-10 18:28:56 +00:00
< / tr >
< tr >
< th > Default < code > title_format< / code > < / th >
2022-03-19 16:02:52 +00:00
< td > < code > < < key_name> > < / code > < / td >
2022-03-10 18:28:56 +00:00
< / tr >
< tr >
< th > Default Template< / th >
< td >
```yaml
default_template:
plex_search:
2022-04-05 20:38:53 +00:00
any:
writer: < < value > >
2022-03-10 18:28:56 +00:00
```
< / td >
< / tr >
< / table >
* `depth` determines how many writers are looked at per item.
* `minimum` determines the minimum number of times the writer must appear within `depth` for the collection to be created.
* `limit` determines the number of writer collection to max out at. (i.e. if to make collections for the top 25 writers)
2022-03-11 07:07:37 +00:00
#### Example:
* Create a collection for the top 5 writers who appear in the top writer credit of movies
```yaml
dynamic_collections:
Top Writers: # mapping name does not matter just needs to be unique
type: writer
data:
depth: 1
limit: 5
```
#### Example:
* Create a collection for writers who appear in the top writer credits of movies
* Only create the collection if they are in the top writer credits of at least 10 movies
```yaml
dynamic_collections:
Writers: # mapping name does not matter just needs to be unique
type: writer
data:
depth: 1
minimum: 10
```
2022-03-10 18:28:56 +00:00
### Producer
Create a collection for each producer found in the library.
< table class = "dualTable colwidths-auto align-default table" >
< tr >
< th > < code > type< / code > Option< / th >
< td > < code > producer< / code > < / td >
< / tr >
< tr >
< th > < code > data< / code > Values< / th >
< td >
< table class = "clearTable" >
< tr >
< th > Attribute< / th >
< th > Description & Values< / th >
< / tr >
< tr >
< td > < code > depth< / code > < / td >
2022-05-11 15:55:07 +00:00
< td > < strong > Values:< / strong > Number greater than 0< / td >
2022-03-10 18:28:56 +00:00
< td > < strong > Default:< / strong > 3< / td >
< / tr >
< tr >
< td > < code > minimum< / code > < / td >
2022-05-11 15:55:07 +00:00
< td > < strong > Values:< / strong > Number greater than 0< / td >
2022-03-10 18:28:56 +00:00
< td > < strong > Default:< / strong > 3< / td >
< / tr >
< tr >
< td > < code > limit< / code > < / td >
2022-05-11 15:55:07 +00:00
< td > < strong > Values:< / strong > Number greater than 0< / td >
2022-03-10 18:28:56 +00:00
< td > < strong > Default:< / strong > None< / td >
< / tr >
< / table >
< / td >
< / tr >
< tr >
< th > Keys< / th >
2022-04-05 20:38:53 +00:00
< td > Person Name< / td >
2022-03-10 18:28:56 +00:00
< / tr >
< tr >
2022-03-11 07:07:37 +00:00
< th > Key Names< / th >
2022-04-05 20:38:53 +00:00
< td > Person Name< / td >
2022-03-10 18:28:56 +00:00
< / tr >
< tr >
< th > Default < code > title_format< / code > < / th >
2022-03-19 16:02:52 +00:00
< td > < code > < < key_name> > < / code > < / td >
2022-03-10 18:28:56 +00:00
< / tr >
< tr >
< th > Default Template< / th >
< td >
```yaml
default_template:
plex_search:
all:
2022-04-05 20:38:53 +00:00
producer: < < value > >
2022-03-10 18:28:56 +00:00
```
< / td >
< / tr >
< / table >
* `depth` determines how many producers are looked at per item.
* `minimum` determines the minimum number of times the producer must appear within `depth` for the collection to be created.
* `limit` determines the number of producer collection to max out at. (i.e. if to make collections for the top 25 producers)
2022-03-08 08:06:22 +00:00
#### Example:
2022-03-11 07:07:37 +00:00
* Create a collection for the top 5 producers who appear in the top producer credit of movies
2022-03-08 08:06:22 +00:00
```yaml
dynamic_collections:
2022-03-11 07:07:37 +00:00
Top Producers: # mapping name does not matter just needs to be unique
type: producer
2022-03-08 08:06:22 +00:00
data:
2022-03-11 07:07:37 +00:00
depth: 1
limit: 5
2022-03-08 08:06:22 +00:00
```
#### Example:
2022-03-11 07:07:37 +00:00
* Create a collection for producers who appear in the top producer credits of movies
* Only create the collection if they are in the top producer credits of at least 10 movies
2022-03-08 08:06:22 +00:00
```yaml
dynamic_collections:
2022-03-11 07:07:37 +00:00
Producers: # mapping name does not matter just needs to be unique
type: producers
2022-03-08 08:06:22 +00:00
data:
2022-03-11 07:07:37 +00:00
depth: 1
minimum: 10
2022-03-08 08:06:22 +00:00
```
### Genre
Create a collection for each genre found in the library.
< table class = "dualTable colwidths-auto align-default table" >
< tr >
< th > < code > type< / code > Option< / th >
< td > < code > genre< / code > < / td >
< / tr >
< tr >
< th > < code > data< / code > Value< / th >
< td > Not Used< / td >
< / tr >
< tr >
< th > Keys< / th >
< td > Genre< / td >
< / tr >
< tr >
2022-03-11 07:07:37 +00:00
< th > Key Names< / th >
2022-03-08 08:06:22 +00:00
< td > Genre< / td >
< / tr >
< tr >
< th > Default < code > title_format< / code > < / th >
2022-03-19 16:02:52 +00:00
< td > < code > Top < < key_name> > < < library_type> > s< / code > < / td >
2022-03-08 08:06:22 +00:00
< / tr >
< tr >
< th > Default Template< / th >
< td >
```yaml
default_template:
smart_filter:
limit: 50
sort_by: critic_rating.desc
2022-03-11 16:56:32 +00:00
any:
2022-03-19 16:02:52 +00:00
genre: < < value > >
2022-03-08 08:06:22 +00:00
```
< / td >
< / tr >
< / table >
#### 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
2022-05-19 16:09:28 +00:00
* Name the collection "Top [Genre] Movies" or "Top [Genre] Shows"
2022-03-08 08:06:22 +00:00
```yaml
templates:
genre collection:
smart_filter:
limit: 100
sort_by: critic_rating.desc
all:
2022-03-19 16:02:52 +00:00
genre: < < value > >
2022-03-08 08:06:22 +00:00
dynamic_collections:
Genres: # mapping name does not matter just needs to be unique
type: genre
exclude:
2022-03-10 18:28:56 +00:00
- Talk Show
2022-03-10 19:25:02 +00:00
title_format: Top < < key_name > > < < library_type > >s
2022-03-08 08:06:22 +00:00
template: genre collection
```
2022-12-02 17:08:01 +00:00
### Album Genre
Create a collection for each album genre found in the library.
< table class = "dualTable colwidths-auto align-default table" >
< tr >
< th > < code > type< / code > Option< / th >
< td > < code > album_genre< / code > < / td >
< / tr >
< tr >
< th > < code > data< / code > Value< / th >
< td > Not Used< / td >
< / tr >
< tr >
< th > Keys< / th >
< td > Genre< / td >
< / tr >
< tr >
< th > Key Names< / th >
< td > Genre< / td >
< / tr >
< tr >
< th > Default < code > title_format< / code > < / th >
< td > < code > Top < < key_name> > Albums< / code > < / td >
< / tr >
< tr >
< th > Default Template< / th >
< td >
```yaml
default_template:
smart_filter:
limit: 50
sort_by: plays.desc
any:
album_genre: < < value > >
```
< / td >
< / tr >
< / table >
#### Example:
* Create dynamic collections based on each Album genre found in the library
* Amend the template to increase the limit from 10 to 20
* Exclude the "Pop" genre
* Name the collection "Top 20 [Genre] Albums"
```yaml
templates:
genre collection:
smart_filter:
limit: 100
sort_by: plays.desc
all:
album_genre: < < value > >
dynamic_collections:
Genres: # mapping name does not matter just needs to be unique
type: album_genre
exclude:
- Pop
title_format: Top 20 < < key_name > > < < library_type > >s
template: genre collection
```
2022-03-21 17:35:21 +00:00
### Content Rating
2022-03-11 15:33:22 +00:00
Create a collection for each content rating found in the library.
< table class = "dualTable colwidths-auto align-default table" >
< tr >
< th > < code > type< / code > Option< / th >
< td > < code > content_rating< / code > < / td >
< / tr >
< tr >
< th > < code > data< / code > Value< / th >
< td > Not Used< / td >
< / tr >
< tr >
< th > Keys< / th >
< td > Content Rating< / td >
< / tr >
< tr >
< th > Key Names< / th >
< td > Content Rating< / td >
< / tr >
< tr >
< th > Default < code > title_format< / code > < / th >
2022-03-19 16:02:52 +00:00
< td > < code > Top < < key_name> > < < library_type> > s< / code > < / td >
2022-03-11 15:33:22 +00:00
< / tr >
< tr >
< th > Default Template< / th >
< td >
```yaml
default_template:
smart_filter:
limit: 50
sort_by: critic_rating.desc
2022-03-11 16:56:32 +00:00
any:
2022-03-19 16:02:52 +00:00
content_rating: < < value > >
2022-03-11 15:33:22 +00:00
```
< / td >
< / tr >
< / table >
#### 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
```yaml
templates:
content rating collection:
smart_filter:
limit: 100
sort_by: critic_rating.desc
all:
2022-03-19 16:02:52 +00:00
content_rating: < < value > >
2022-03-11 15:33:22 +00:00
dynamic_collections:
Content Ratings: # mapping name does not matter just needs to be unique
type: content_rating
template: content rating collection
```
2022-03-08 08:06:22 +00:00
### Year
Create a collection for each year found in the library.
< table class = "dualTable colwidths-auto align-default table" >
< tr >
< th > < code > type< / code > Option< / th >
< td > < code > year< / code > < / td >
< / tr >
< tr >
< th > < code > data< / code > Value< / th >
< td > Not Used< / td >
< / tr >
< tr >
< th > Keys< / th >
< td > Year< / td >
< / tr >
< tr >
2022-03-11 07:07:37 +00:00
< th > Key Names< / th >
2022-03-08 08:06:22 +00:00
< td > Year< / td >
< / tr >
< tr >
< th > Default < code > title_format< / code > < / th >
2022-03-19 16:02:52 +00:00
< td > < code > Best < < library_type> > s of < < key_name> > < / code > < / td >
2022-03-08 08:06:22 +00:00
< / tr >
< tr >
< th > Default Template< / th >
< td >
```yaml
default_template:
smart_filter:
limit: 50
sort_by: critic_rating.desc
2022-03-11 16:56:32 +00:00
any:
2022-03-19 16:02:52 +00:00
year: < < value > >
2022-03-08 08:06:22 +00:00
```
< / td >
< / tr >
< / table >
#### Example
* Create dynamic collections based on each year found in the library (TV and Movies)
* Use the `include` attribute to only show collections for years "2020", "2021" and "2022"
2022-05-19 16:09:28 +00:00
* Name the collection "Best of [Year]"
2022-03-08 08:06:22 +00:00
```yaml
dynamic_collections:
Years: # mapping name does not matter just needs to be unique
type: year
include:
- 2020
- 2021
- 2022
2022-03-10 19:25:02 +00:00
title_format: Best of < < key_name > >
2022-03-08 08:06:22 +00:00
```
### Decade
Create a collection for each decade found in the library
< table class = "dualTable colwidths-auto align-default table" >
< tr >
< th > < code > type< / code > Option< / th >
< td > < code > decade< / code > < / td >
< / tr >
< tr >
< th > < code > data< / code > Value< / th >
< td > Not Used< / td >
< / tr >
< tr >
< th > Keys< / th >
< td > Decade< / td >
< / tr >
< tr >
2022-03-11 07:07:37 +00:00
< th > Key Names< / th >
2022-03-08 08:06:22 +00:00
< td > Decade< / td >
< / tr >
< tr >
< th > Default < code > title_format< / code > < / th >
2022-03-19 16:02:52 +00:00
< td > < code > Best < < library_type> > s of < < key_name> > < / code > < / td >
2022-03-08 08:06:22 +00:00
< / tr >
< tr >
< th > Default Template< / th >
< td >
```yaml
default_template:
smart_filter:
limit: 50
sort_by: critic_rating.desc
2022-03-11 16:56:32 +00:00
any:
2022-03-19 16:02:52 +00:00
decade: < < value > >
2022-03-08 08:06:22 +00:00
```
< / td >
< / tr >
< / table >
2022-05-23 18:42:27 +00:00
#### Example:
2022-03-08 08:06:22 +00:00
* Create a collection for each decade found in the library (TV and Movies)
2022-05-19 16:09:28 +00:00
* Name the collection "Top [Decade] Movies"
2022-03-08 08:06:22 +00:00
* Rename the `2020` collection name to "Top 2020 Movies (so far)"
```yaml
dynamic_collections:
Decades: # mapping name does not matter just needs to be unique
type: decade
2022-03-10 19:25:02 +00:00
title_format: Top < < key_name > > < < library_type > >s
2022-03-11 07:07:37 +00:00
title_override:
2022-03-08 08:06:22 +00:00
2020: Top 2020 Movies (so far)
```
### Country
Create a collection for each country found in the library
< table class = "dualTable colwidths-auto align-default table" >
< tr >
< th > < code > type< / code > Option< / th >
< td > < code > country< / code > < / td >
< / tr >
< tr >
< th > < code > data< / code > Value< / th >
< td > Not Used< / td >
< / tr >
< tr >
< th > Keys< / th >
< td > Country< / td >
< / tr >
< tr >
2022-03-11 07:07:37 +00:00
< th > Key Names< / th >
2022-03-08 08:06:22 +00:00
< td > Country< / td >
< / tr >
< tr >
< th > Default < code > title_format< / code > < / th >
2022-03-19 16:02:52 +00:00
< td > < code > Top < < key_name> > < < library_type> > s< / code > < / td >
2022-03-08 08:06:22 +00:00
< / tr >
< tr >
< th > Default Template< / th >
< td >
```yaml
default_template:
smart_filter:
limit: 50
sort_by: critic_rating.desc
2022-03-11 16:56:32 +00:00
any:
2022-03-19 16:02:52 +00:00
country: < < value > >
2022-03-08 08:06:22 +00:00
```
< / td >
< / tr >
< / table >
#### Example:
* Create a collection for the top movies from each country found in the library
2022-05-19 16:09:28 +00:00
* Name the collection "Top [Country] Cinema"
2022-03-11 07:07:37 +00:00
* The `key_name_override` attribute is used here in combination with the `title_format` to change the collection name from "France" which would be the default title, to "Top French Cinema"
2022-03-08 08:06:22 +00:00
```yaml
dynamic_collections:
Countries: # mapping name does not matter just needs to be unique
type: country
2022-03-10 19:25:02 +00:00
title_format: Top < < key_name > > Cinema
2022-03-11 07:07:37 +00:00
key_name_override:
2022-03-08 08:06:22 +00:00
France: French
Germany: German
India: Indian
```
2022-03-11 21:48:27 +00:00
### Resolution
Create a collection for each resolution found in the library
< table class = "dualTable colwidths-auto align-default table" >
< tr >
< th > < code > type< / code > Option< / th >
< td > < code > resolution< / code > < / td >
< / tr >
< tr >
< th > < code > data< / code > Value< / th >
< td > Not Used< / td >
< / tr >
< tr >
< th > Keys< / th >
< td > Resolution< / td >
< / tr >
< tr >
< th > Key Names< / th >
< td > Resolution< / td >
< / tr >
< tr >
< th > Default < code > title_format< / code > < / th >
< td > < code > < < key_name> > < < library_type> > s< / code > < / td >
< / tr >
< tr >
< th > Default Template< / th >
< td >
```yaml
default_template:
smart_filter:
limit: 50
sort_by: title.asc
any:
2022-03-19 16:02:52 +00:00
resolution: < < value > >
2022-03-11 21:48:27 +00:00
```
< / td >
< / tr >
< / table >
#### 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"
```yaml
dynamic_collections:
Resolutions: # mapping name does not matter just needs to be unique
type: resolution
addons:
2022-03-21 17:35:21 +00:00
480p:
2022-03-11 21:48:27 +00:00
- 576p
- SD
title_override:
480p: SD Movies
```
2022-03-11 23:11:47 +00:00
### Subtitle Language
Create a collection for each subtitle language found in the library
< table class = "dualTable colwidths-auto align-default table" >
< tr >
< th > < code > type< / code > Option< / th >
< td > < code > subtitle_language< / code > < / td >
< / tr >
< tr >
< th > < code > data< / code > Value< / th >
< td > Not Used< / td >
< / tr >
< tr >
< th > Keys< / th >
2022-03-12 06:13:33 +00:00
< td > < a href = "https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes" > ISO 639-1 Code< / a > < / td >
2022-03-11 23:11:47 +00:00
< / tr >
< tr >
< th > Key Names< / th >
2022-03-12 06:13:33 +00:00
< td > Subtitle Language Name< / td >
2022-03-11 23:11:47 +00:00
< / tr >
< tr >
< th > Default < code > title_format< / code > < / th >
< td > < code > Top < < key_name> > < < library_type> > s< / code > < / td >
< / tr >
< tr >
< th > Default Template< / th >
< td >
```yaml
default_template:
smart_filter:
limit: 50
sort_by: critic_rating.asc
any:
2022-03-19 16:02:52 +00:00
subtitle_language: < < value > >
2022-03-11 23:11:47 +00:00
```
< / td >
< / tr >
< / table >
#### Example:
* Create a collection for each subtitle language found in the library
```yaml
dynamic_collections:
Subtitle Languages: # mapping name does not matter just needs to be unique
type: subtitle_language
```
### Audio Language
Create a collection for each audio language found in the library
< table class = "dualTable colwidths-auto align-default table" >
< tr >
< th > < code > type< / code > Option< / th >
< td > < code > audio_language< / code > < / td >
< / tr >
< tr >
< th > < code > data< / code > Value< / th >
< td > Not Used< / td >
< / tr >
< tr >
< th > Keys< / th >
2022-03-12 06:13:33 +00:00
< td > < a href = "https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes" > ISO 639-1 Code< / a > < / td >
2022-03-11 23:11:47 +00:00
< / tr >
< tr >
< th > Key Names< / th >
2022-03-12 06:13:33 +00:00
< td > Audio Language Name< / td >
2022-03-11 23:11:47 +00:00
< / tr >
< tr >
< th > Default < code > title_format< / code > < / th >
< td > < code > Top < < key_name> > < < library_type> > s< / code > < / td >
< / tr >
< tr >
< th > Default Template< / th >
< td >
```yaml
default_template:
smart_filter:
limit: 50
sort_by: critic_rating.asc
any:
2022-03-19 16:02:52 +00:00
audio_language: < < value > >
2022-03-11 23:11:47 +00:00
```
< / td >
< / tr >
< / table >
#### Example:
* Create a collection for each audio language found in the library
```yaml
dynamic_collections:
Audio Languages: # mapping name does not matter just needs to be unique
type: audio_language
```
2022-03-25 22:42:03 +00:00
### Studio
Create a collection for each studio found in the library.
< table class = "dualTable colwidths-auto align-default table" >
< tr >
< th > < code > type< / code > Option< / th >
< td > < code > studio< / code > < / td >
< / tr >
< tr >
< th > < code > data< / code > Value< / th >
< td > Not Used< / td >
< / tr >
< tr >
< th > Keys< / th >
< td > Studio< / td >
< / tr >
< tr >
< th > Key Names< / th >
< td > Studio< / td >
< / tr >
< tr >
< th > Default < code > title_format< / code > < / th >
< td > < code > Top < < key_name> > < < library_type> > s< / code > < / td >
< / tr >
< tr >
< th > Default Template< / th >
< td >
```yaml
default_template:
smart_filter:
limit: 50
sort_by: critic_rating.desc
any:
studio: < < value > >
```
< / td >
< / tr >
< / table >
#### Example:
* Create a collection for each studio found in a Movies library
```yaml
templates:
studio collection:
smart_filter:
sort_by: critic_rating.desc
all:
studio: < < value > >
dynamic_collections:
Studios: # mapping name does not matter just needs to be unique
type: studio
title_format: < < key_name > >
template: studio collection
```
2022-09-20 02:46:52 +00:00
### Edition
Create a collection for each edition found in the library.
< table class = "dualTable colwidths-auto align-default table" >
< tr >
< th > < code > type< / code > Option< / th >
< td > < code > edition< / code > < / td >
< / tr >
< tr >
< th > < code > data< / code > Value< / th >
< td > Not Used< / td >
< / tr >
< tr >
< th > Keys< / th >
< td > Editions< / td >
< / tr >
< tr >
< th > Key Names< / th >
< td > Edition< / td >
< / tr >
< tr >
< th > Default < code > title_format< / code > < / th >
< td > < code > Top < < key_name> > < < library_type> > s< / code > < / td >
< / tr >
< tr >
< th > Default Template< / th >
< td >
```yaml
default_template:
smart_filter:
limit: 50
sort_by: critic_rating.desc
any:
edition: < < value > >
```
< / td >
< / tr >
< / table >
#### Example:
* Create a collection for each edition found in a Movies library
```yaml
templates:
edition collection:
smart_filter:
sort_by: critic_rating.desc
all:
edition: < < value > >
dynamic_collections:
Sditions: # mapping name does not matter just needs to be unique
type: edition
title_format: < < key_name > >
template: edition collection
```
2022-03-08 08:06:22 +00:00
### Network
Create a collection for each network found in the library.
< table class = "dualTable colwidths-auto align-default table" >
< tr >
< th > < code > type< / code > Option< / th >
< td > < code > network< / code > < / td >
< / tr >
< tr >
< th > < code > data< / code > Value< / th >
< td > Not Used< / td >
< / tr >
< tr >
< th > Keys< / th >
< td > Network< / td >
< / tr >
< tr >
2022-03-11 07:07:37 +00:00
< th > Key Names< / th >
2022-03-08 08:06:22 +00:00
< td > Network< / td >
< / tr >
< tr >
< th > Default < code > title_format< / code > < / th >
2022-03-19 16:02:52 +00:00
< td > < code > Top < < key_name> > < < library_type> > s< / code > < / td >
2022-03-08 08:06:22 +00:00
< / tr >
< tr >
< th > Default Template< / th >
< td >
```yaml
default_template:
smart_filter:
limit: 50
sort_by: critic_rating.desc
2022-03-11 16:56:32 +00:00
any:
2022-03-19 16:02:52 +00:00
network: < < value > >
2022-03-08 08:06:22 +00:00
```
< / td >
< / tr >
< / table >
#### Example:
* Create a collection for each network found in a TV Shows library
```yaml
templates:
network collection:
2022-03-21 17:35:21 +00:00
smart_filter:
2022-03-08 08:06:22 +00:00
sort_by: critic_rating.desc
2022-03-21 17:35:21 +00:00
all:
2022-03-19 16:02:52 +00:00
network: < < value > >
2022-03-08 08:06:22 +00:00
dynamic_collections:
Networks: # mapping name does not matter just needs to be unique
type: network
2022-03-10 19:25:02 +00:00
title_format: < < key_name > >
2022-03-08 08:06:22 +00:00
template: network collection
```
### Mood
2022-12-02 17:08:01 +00:00
Create a collection for each artist mood found in the library.
2022-03-08 08:06:22 +00:00
< table class = "dualTable colwidths-auto align-default table" >
< tr >
< th > < code > type< / code > Option< / th >
< td > < code > mood< / code > < / td >
< / tr >
< tr >
< th > < code > data< / code > Value< / th >
< td > Not Used< / td >
< / tr >
< tr >
< th > Keys< / th >
< td > Mood< / td >
< / tr >
< tr >
2022-03-11 07:07:37 +00:00
< th > Key Names< / th >
2022-03-08 08:06:22 +00:00
< td > Mood< / td >
< / tr >
< tr >
< th > Default < code > title_format< / code > < / th >
2022-03-19 16:02:52 +00:00
< td > < code > Most Played < < value> > < < library_type> > s< / code > < / td >
2022-03-08 08:06:22 +00:00
< / tr >
< tr >
< th > Default Template< / th >
< td >
```yaml
default_template:
smart_filter:
2022-12-02 17:08:01 +00:00
limit: 10
2022-03-08 08:06:22 +00:00
sort_by: plays.desc
2022-03-11 16:56:32 +00:00
any:
2022-03-19 16:02:52 +00:00
artist_mood: < < value > >
2022-03-08 08:06:22 +00:00
```
< / td >
< / tr >
< / table >
#### Example:
2022-12-02 17:08:01 +00:00
* 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"
```yaml
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
```
### Album Mood
Create a collection for each album mood found in the library.
< table class = "dualTable colwidths-auto align-default table" >
< tr >
< th > < code > type< / code > Option< / th >
< td > < code > album_mood< / code > < / td >
< / tr >
< tr >
< th > < code > data< / code > Value< / th >
< td > Not Used< / td >
< / tr >
< tr >
< th > Keys< / th >
< td > Mood< / td >
< / tr >
< tr >
< th > Key Names< / th >
< td > Mood< / td >
< / tr >
< tr >
< th > Default < code > title_format< / code > < / th >
< td > < code > Most Played < < value> > Albums< / code > < / td >
< / tr >
< tr >
< th > Default Template< / th >
< td >
```yaml
default_template:
smart_filter:
limit: 10
sort_by: plays.desc
any:
album_mood: < < value > >
```
< / td >
< / tr >
< / table >
#### 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"
```yaml
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
```
### Track Mood
Create a collection for each track mood found in the library.
< table class = "dualTable colwidths-auto align-default table" >
< tr >
< th > < code > type< / code > Option< / th >
< td > < code > track_mood< / code > < / td >
< / tr >
< tr >
< th > < code > data< / code > Value< / th >
< td > Not Used< / td >
< / tr >
< tr >
< th > Keys< / th >
< td > Mood< / td >
< / tr >
< tr >
< th > Key Names< / th >
< td > Mood< / td >
< / tr >
< tr >
< th > Default < code > title_format< / code > < / th >
< td > < code > Most Played < < value> > Tracks< / code > < / td >
< / tr >
< tr >
< th > Default Template< / th >
< td >
```yaml
default_template:
smart_filter:
limit: 50
sort_by: plays.desc
any:
track_mood: < < value > >
```
< / td >
< / tr >
< / table >
#### 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"
2022-03-08 08:06:22 +00:00
```yaml
templates:
mood collection:
smart_filter:
limit: 100
sort_by: plays.desc
all:
2022-03-19 16:02:52 +00:00
track_mood: < < value > >
2022-03-08 08:06:22 +00:00
dynamic_collections:
Moods: # mapping name does not matter just needs to be unique
2022-12-02 17:08:01 +00:00
type: track_mood
title_format: Top 100 < < key_name > > Tracks
2022-03-08 08:06:22 +00:00
template: mood collection
```
### Style
2022-07-18 15:44:16 +00:00
Create a collection for each artist style found in the library.
2022-03-08 08:06:22 +00:00
< table class = "dualTable colwidths-auto align-default table" >
< tr >
< th > < code > type< / code > Option< / th >
< td > < code > style< / code > < / td >
< / tr >
< tr >
< th > < code > data< / code > Value< / th >
< td > Not Used< / td >
< / tr >
< tr >
< th > Keys< / th >
< td > Style< / td >
< / tr >
< tr >
2022-03-11 07:07:37 +00:00
< th > Key Names< / th >
2022-03-08 08:06:22 +00:00
< td > Style< / td >
< / tr >
< tr >
< th > Default < code > title_format< / code > < / th >
2022-03-19 16:02:52 +00:00
< td > < code > Most Played < < key_name> > < < library_type> > s< / code > < / td >
2022-03-08 08:06:22 +00:00
< / tr >
< tr >
< th > Default Template< / th >
< td >
```yaml
default_template:
smart_filter:
2022-12-02 17:08:01 +00:00
limit: 10
2022-03-08 08:06:22 +00:00
sort_by: plays.desc
2022-03-11 16:56:32 +00:00
any:
2022-03-19 16:02:52 +00:00
artist_style: < < value > >
2022-03-08 08:06:22 +00:00
```
< / td >
< / tr >
< / table >
#### Example:
2022-07-18 15:44:16 +00:00
* Create a collection for the top 10 artists for each style found in the Music library
* Name the collection "Top [Style] Artists"
```yaml
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
```
### Album Style
Create a collection for each album style found in the library.
< table class = "dualTable colwidths-auto align-default table" >
< tr >
< th > < code > type< / code > Option< / th >
< td > < code > album_style< / code > < / td >
< / tr >
< tr >
< th > < code > data< / code > Value< / th >
< td > Not Used< / td >
< / tr >
< tr >
< th > Keys< / th >
< td > Style< / td >
< / tr >
< tr >
< th > Key Names< / th >
< td > Style< / td >
< / tr >
< tr >
< th > Default < code > title_format< / code > < / th >
< td > < code > Most Played < < key_name> > Albums< / code > < / td >
< / tr >
< tr >
< th > Default Template< / th >
< td >
```yaml
default_template:
smart_filter:
2022-12-02 17:08:01 +00:00
limit: 10
2022-07-18 15:44:16 +00:00
sort_by: plays.desc
any:
album_style: < < value > >
```
< / td >
< / tr >
< / table >
#### Example:
2022-03-08 08:06:22 +00:00
* Create a collection for the top 10 albums for each style found in the Music library
2022-05-19 16:09:28 +00:00
* Name the collection "Top [Style] Albums"
2022-03-08 08:06:22 +00:00
```yaml
templates:
style collection:
2022-07-26 19:58:53 +00:00
builder_level: album
2022-03-08 08:06:22 +00:00
smart_filter:
limit: 10
sort_by: plays.desc
all:
2022-03-19 16:02:52 +00:00
album_style: < < value > >
2022-03-08 08:06:22 +00:00
dynamic_collections:
Styles: # mapping name does not matter just needs to be unique
2022-07-18 15:44:16 +00:00
type: album_style
2022-03-10 19:25:02 +00:00
title_format: Top < < key_name > > Albums
2022-03-08 08:06:22 +00:00
template: style collection
```
2022-05-11 06:40:50 +00:00
### Number
Creates a collection for each number defined.
< table class = "dualTable colwidths-auto align-default table" >
< tr >
< th > < code > type< / code > Option< / th >
< td > < code > number< / code > < / td >
< / tr >
< tr >
< th > < code > data< / code > Values< / th >
< td >
< table class = "clearTable" >
< tr >
< th > Attribute< / th >
< th > Description & Values< / th >
< / tr >
< tr >
< td > < code > starting< / code > < / td >
2022-05-11 15:55:07 +00:00
< td > < strong > Values:< / strong > Number greater than 0< / td >
2022-05-11 06:40:50 +00:00
< td > < strong > Default:< / strong > 0< / td >
< / tr >
< tr >
< td > < code > ending< / code > < / td >
2022-05-11 15:55:07 +00:00
< td > < strong > Values:< / strong > Number greater than 1< / td >
2022-05-11 06:40:50 +00:00
< td > < strong > Default:< / strong > 1< / td >
< / tr >
< tr >
< td > < code > increment< / code > < / td >
2022-05-11 15:55:07 +00:00
< td > < strong > Values:< / strong > Number greater than 0< / td >
2022-05-11 06:40:50 +00:00
< td > < strong > Default:< / strong > 1< / td >
< / tr >
< / table >
2022-05-11 13:22:19 +00:00
< ul >
< li > < strong > < code > starting< / code > and < code > ending< / code > can also have the value < code > current_year< / code > < / strong > < / li >
< li > < strong > You can also use a value relative to the < code > current_year< / code > by doing < code > current_year-5< / code > < / strong > < / li >
< / ul >
2022-05-11 06:40:50 +00:00
< / td >
< / tr >
< tr >
< th > Keys< / th >
< td > Number< / td >
< / tr >
< tr >
< th > Key Names< / th >
< td > Number< / td >
< / tr >
< tr >
< th > Default < code > title_format< / code > < / th >
< td > < code > < < key_name> > < / code > < / td >
< / tr >
< tr >
< th > Default Template< / th >
< td > **None**< / td >
< / tr >
< / table >
2022-05-19 16:09:28 +00:00
#### Example:
* Create a collection for the Oscar Winner by Year for the last 5 years
* Name the collection "Oscars Winners [Number]"
```yaml
templates:
Oscars:
summary: Academy Awards (Oscars) Winners for < < key > >
imdb_list: https://www.imdb.com/search/title/?release_date=< < key > >-01-01,< < key > >-12-31& groups=oscar_winner& sort=moviemeter,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
Creates a collection for each custom `key: key_name` pair defined.
2022-05-11 06:40:50 +00:00
< table class = "dualTable colwidths-auto align-default table" >
< tr >
< th > < code > type< / code > Option< / th >
2022-05-19 16:09:28 +00:00
< td > < code > custom< / code > < / td >
2022-05-11 06:40:50 +00:00
< / tr >
< tr >
< th > < code > data< / code > Values< / th >
< td > Strings to iterate< / td >
< / tr >
< tr >
< th > Keys< / th >
2022-05-19 16:09:28 +00:00
< td > < code > key< / code > < / td >
2022-05-11 06:40:50 +00:00
< / tr >
< tr >
< th > Key Names< / th >
2022-05-19 16:09:28 +00:00
< td > < code > key_name< / code > < / td >
2022-05-11 06:40:50 +00:00
< / tr >
< tr >
< th > Default < code > title_format< / code > < / th >
< td > < code > < < key_name> > < / code > < / td >
< / tr >
< tr >
< th > Default Template< / th >
2022-05-11 13:22:19 +00:00
< td > < strong > None< / strong > < / td >
2022-05-11 06:40:50 +00:00
< / tr >
< / table >
2022-05-19 16:09:28 +00:00
#### Example:
* Create a collection for the various Streaming Services
* Name the collection "[Key Name] Movies"
```yaml
templates:
streaming:
cache_builders: 1
smart_label: release.desc
sync_mode: sync
mdblist_list: https://mdblist.com/lists/plexmetamanager/< < key > >-movies
url_poster: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/streaming/< < key_name_encoded > >.jpg
dynamic_collections:
Streaming:
type: custom
data:
all-4: All 4
appletv: Apple TV+
bet: BET+
britbox: BritBox
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
```
2022-03-08 08:06:22 +00:00
## Exclude
Exclude this list of `keys` from being created into collections.
For example when making a `genre` dynamic collection definition you can exclude "Horror" from having a collection created from the key.
```yaml
dynamic_collections:
Genres: # mapping name does not matter, just needs to be unique
type: genre
exclude:
- Horror
```
## Addons
Defines how multiple `keys` can be combined under a parent key.
2022-03-11 21:48:27 +00:00
For example, the `addons` attribute can be used to combine multiple `keys` , i.e. merging "MTV2", "MTV3" and "MTV (UK)" into the "MTV" collection.
2022-03-08 08:06:22 +00:00
```yaml
dynamic_collections:
networks:
type: network
2022-03-10 18:28:56 +00:00
addons:
2022-03-21 17:35:21 +00:00
MTV:
2022-03-10 18:28:56 +00:00
- MTV2
- MTV3
- MTV (UK)
2022-03-08 08:06:22 +00:00
```
2022-03-27 06:26:08 +00:00
You can also define custom keys under addons if the main key doesn't exist as a key it will be considered a custom key combining all keys into one key.
2022-03-08 08:06:22 +00:00
## Template
Name of the template to use for these dynamic collections. Each `type` has its own default template, but if you want to define and use your own template you can.
2022-03-19 16:02:52 +00:00
Each template is passed a few template variables you can use.
* `value` : The list of keys and addons
* `key` : The dynamic key
* `key_name` : The key after `key_name_override` , `remove_prefix` , or `remove_suffix` are run on it.
2022-03-15 00:11:16 +00:00
2022-03-08 08:06:22 +00:00
For example, the template below removes the limit on the `smart_filter` so it shows all items in each network
```yaml
templates:
network collection:
2022-03-21 17:35:21 +00:00
smart_filter:
2022-03-08 08:06:22 +00:00
sort_by: critic_rating.desc
2022-03-21 17:35:21 +00:00
all:
2022-03-19 16:02:52 +00:00
network: < < value > >
2022-03-08 08:06:22 +00:00
dynamic_collections:
Networks: # mapping name does not matter just needs to be unique
type: network
2022-03-10 19:25:02 +00:00
title_format: < < key_name > >
2022-03-08 08:06:22 +00:00
template: network collection
```
## Template Variables
Defines how template variables can be defined by key.
2022-03-21 17:35:21 +00:00
For example, when using `type: tmdb_collection` and you want to define a poster url for some collections
2022-03-08 08:06:22 +00:00
```yaml
templates:
2022-04-23 02:48:26 +00:00
my_template:
optional:
- my_collection_poster
tmdb_collection_details: < < value > >
collection_order: release
url_poster: < < my_collection_poster > >
2022-03-08 08:06:22 +00:00
dynamic_collections:
TMDb Collections: # This name is the mapping name
2022-03-21 17:35:21 +00:00
type: tmdb_collection
2022-03-08 08:06:22 +00:00
remove_suffix: "Collection"
2022-04-23 02:48:26 +00:00
template: my_template
2022-03-08 08:06:22 +00:00
template_variables:
my_collection_poster:
119: https://www.themoviedb.org/t/p/original/oENY593nKRVL2PnxXsMtlh8izb4.jpg
531241: https://www.themoviedb.org/t/p/original/nogV4th2P5QWYvQIMiWHj4CFLU9.jpg
```
2022-04-05 20:38:53 +00:00
## Other Template
Name of the template to use for the other collection. Will use the same template as the rest of the dynamic collections unless specified.
Each template is passed a few template variables you can use.
* `value` : The list of keys and addons
* `key` : The dynamic key
* `key_name` : The key after `key_name_override` , `remove_prefix` , or `remove_suffix` are run on it.
* `included_keys` : The list of included keys
* `used_keys` : The list of all keys used (included_keys and their addon keys)
2022-03-08 08:06:22 +00:00
## Remove Prefix/Suffix
Removes the defined prefixes/suffixes from the key before it’ s used in the collection title.
2022-03-21 17:35:21 +00:00
For example, when using `type: tmdb_collection` you may not want every collection title to end with `Collection`
2022-03-08 08:06:22 +00:00
```yaml
dynamic_collections:
TMDb Collections: # This name is the mapping name
2022-03-21 17:35:21 +00:00
type: tmdb_collection
2022-03-08 08:06:22 +00:00
remove_suffix: "Collection"
```
## Title Format
This is the format for the collection titles.
2022-03-21 17:35:21 +00:00
there are two special tags you can include in the `title_format`
2022-03-10 19:25:02 +00:00
* `<<key_name>>` is required and is what will be replaced by the dynamic key name.
2022-03-08 08:06:22 +00:00
* `<<library_type>>` will be replaced with either Movie, Show, or Artist depending on your library type.
Here's an example using `title_format` .
```yaml
dynamic_collections:
Genres: # mapping name does not matter just needs to be unique
type: genre
2022-03-10 19:25:02 +00:00
title_format: Top 50 < < key_name > > < < library_type > >s
2022-03-08 08:06:22 +00:00
```
2022-03-11 07:07:37 +00:00
## Key Name Override
2022-03-08 08:06:22 +00:00
2022-03-11 07:07:37 +00:00
Defines how key names can be overridden before they are formatted into collection titles.
2022-03-08 08:06:22 +00:00
2022-03-11 07:07:37 +00:00
This example uses the `key_name_override` attribute to change the formatting of "France" to "French" so that a collection can be named "French Cinema" instead of simply "France"
2022-03-08 08:06:22 +00:00
* This particular example also uses the `title_format` attribute to manipulate the naming convention of the collections.
```yaml
dynamic_collections:
Countries: # mapping name does not matter, just needs to be unique
type: country
2022-03-10 19:25:02 +00:00
title_format: < < key_name > > Cinema
2022-03-11 07:07:37 +00:00
key_name_override:
2022-03-08 08:06:22 +00:00
France: French
```
2022-03-11 07:07:37 +00:00
## Title Override
2022-03-08 08:06:22 +00:00
Defines how collection titles can be overridden ignoring title formatting.
2022-03-11 07:07:37 +00:00
Here's an example using `title_override` that will override the TMDb Star Wars collection which has an TMDb ID of `10` with `Star Wars Universe.
2022-03-08 08:06:22 +00:00
```yaml
dynamic_collections:
TMDb Collections: # mapping name does not matter, just needs to be unique
2022-03-21 17:35:21 +00:00
type: tmdb_collection
2022-03-08 08:06:22 +00:00
remove_suffix: "Collection"
2022-03-11 07:07:37 +00:00
title_override:
2022-03-08 08:06:22 +00:00
10: Star Wars Universe
```
2022-11-11 06:57:22 +00:00
## Custom Keys
Defines if custom keys are allowed. Can be `true` or `false` . Defaults to `true` .
Here's an example using `custom_keys` .
```yaml
dynamic_collections:
TMDb Collections: # mapping name does not matter, just needs to be unique
type: tmdb_collection
remove_suffix: "Collection"
custom_keys: false
```
2022-03-08 08:06:22 +00:00
## Test
Will add `test: true` to all collections for test runs.
Here's an example using `test` .
```yaml
dynamic_collections:
Genres: # mapping name does not matter just needs to be unique
type: genre
test: true
```
## Sync
Will remove dynamic collections that are no longer in the creation list.
The mapping name is added as a label to any collection created using dynamic and because of this when `sync` is true all collections with that label not found in this run will be deleted.
Here's an example using `sync` .
```yaml
dynamic_collections:
Trakt Liked Lists: # mapping name does not matter just needs to be unique
type: trakt_liked_lists
sync: true
```
## Include
Define a list of keys to be made into collections.
This cannot be used with `exclude` .
Here's an example using `include` .
```yaml
dynamic_collections:
Genres: # mapping name does not matter just needs to be unique
type: genre
2022-03-21 17:35:21 +00:00
include:
2022-03-08 08:06:22 +00:00
- Action
- Adventure
- Animation
- Comedy
- Family
- Fantasy
- Horror
- Romance
- Science Fiction
- War
```
## Other Name
Used in combination with `include` . When defined, all keys not in `include` or `addons` will be combined into this collection.
This is the main reason to use `include` . It allows a catch all collection for everything not defined in the config file.
Here's an example using `other_name` .
```yaml
dynamic_collections:
Genres: # mapping name does not matter just needs to be unique
type: genre
other_name: Top Other Movies
include:
- Action
- Adventure
- Animation
- Comedy
- Family
- Fantasy
- Horror
- Romance
- Science Fiction
- War
```