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.
??? blank "`tmdb_collection` - Collections based on TMDb Collections.<aclass="headerlink"href="#tmdb-collection"title="Permanent link">¶</a>"
<divid="tmdb-collection"/>Creates collections based on the TMDb Collections associated with items in the library.
<hrstyle="margin: 0px;">
**`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>>`
??? tip "Default Template (click to expand)"
```yaml
default_template:
tmdb_collection_details: <<value>>
minimum_items: 2
```
???+ example "Example"
```yaml
dynamic_collections:
TMDb Collections: # This name is the mapping name
type: tmdb_collection
remove_suffix: Collection
remove_prefix: The
```
??? blank "`tmdb_popular_people` - Collections based on actors found on [TMDb's Popular People List](https://www.themoviedb.org/person).<aclass="headerlink"href="#tmdb-popular-people"title="Permanent link">¶</a>"
<divid="tmdb-popular-people"/>Creates collections based on each actor found on
[TMDb's Popular People List](https://www.themoviedb.org/person).
<hrstyle="margin: 0px;">
**`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>>`
??? tip "Default Template (click to expand)"
```yaml
default_template:
tmdb_person: <<value>>
plex_search:
all:
actor: tmdb
```
???+ example "Example"
Creates a collection for the top 10 popular people according to TMDb.
```yaml
dynamic_collections:
TMDb Popular People: # This name is the mapping name
type: tmdb_popular_people
data: 10
```
??? blank "`original_language` - Collections based on TMDb original languages.<aclass="headerlink"href="#original-language"title="Permanent link">¶</a>"
<divid="original-language"/>Creates collections based on the TMDb original language associated with items in the
??? blank "`actor` - Collections based on actor credits.<aclass="headerlink"href="#actor"title="Permanent link">¶</a>"
<divid="actor"/>Creates collections for each actor found in the library based on given criteria.
<hrstyle="margin: 0px;">
**`type` Value:** `actor`
**`data` Value:** [Dictionary](../pmm/yaml.md#dictionaries) of Attributes
??? blank "`depth` - Determines how many "top" acting credits per item.<aclass="headerlink"href="#actor-depth"title="Permanent link">¶</a>"
<divid="actor-depth"/>This determines how many "top" acting credits there are for each item. Acting credits
are parsed in top billing order.
**Allowed Values:** Number greater than 0
**Default:**`3`
??? blank "`minimum` - Determines the minimum number of "top" acting credits.<aclass="headerlink"href="#actor-minimum"title="Permanent link">¶</a>"
<divid="actor-minimum"/>Determines the minimum number of "top" acting credits. For a collection for this actor
to be created they must meet 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`
??? blank "`limit` - Determines the maximum number of actor collections to create.<aclass="headerlink"href="#actor-limit"title="Permanent link">¶</a>"
<divid="actor-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>>`
??? tip "Default Template (click to expand)"
```yaml
default_template:
plex_search:
any:
actor: <<value>>
```
???+ example "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.
```yaml
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.
```yaml
dynamic_collections:
Actors: # mapping name does not matter just needs to be unique
type: actor
data:
depth: 5
minimum: 20
```
??? blank "`director` - Collections based on directors.<aclass="headerlink"href="#director"title="Permanent link">¶</a>"
<divid="director"/>Creates collections for each director found in the library based on given criteria.
<hrstyle="margin: 0px;">
**`type` Value:** `director`
**`data` Value:** [Dictionary](../pmm/yaml.md#dictionaries) of Attributes
??? blank "`depth` - Determines how many "top" directing credits per item.<aclass="headerlink"href="#director-depth"title="Permanent link">¶</a>"
<divid="director-depth"/>This determines how many "top" directing credits there are for each item. Directing
credits are parsed in top billing order.
**Allowed Values:** Number greater than 0
**Default:**`3`
??? blank "`minimum` - Determines the minimum number of "top" directing credits.<aclass="headerlink"href="#director-minimum"title="Permanent link">¶</a>"
<divid="director-minimum"/>Determines the minimum number of "top" directing credits. For a collection for this
director to be created they must meet 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`
??? blank "`limit` - Determines the maximum number of director collections to create.<aclass="headerlink"href="#director-limit"title="Permanent link">¶</a>"
<divid="director-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>>`
??? tip "Default Template (click to expand)"
```yaml
default_template:
plex_search:
any:
director: <<value>>
```
???+ example "Examples"
This example creates a collection for the each of the top 5 directors who appear as the "top" directing credits
of movies.
```yaml
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.
```yaml
dynamic_collections:
Directors: # mapping name does not matter just needs to be unique
type: director
data:
depth: 1
minimum: 10
```
??? blank "`writer` - Collections based on writers.<aclass="headerlink"href="#director"title="Permanent link">¶</a>"
<divid="director"/>Creates collections for each writer found in the library based on given criteria.
<hrstyle="margin: 0px;">
**`type` Value:** `writer`
**`data` Value:** [Dictionary](../pmm/yaml.md#dictionaries) of Attributes
??? blank "`depth` - Determines how many "top" writing credits per item.<aclass="headerlink"href="#writer-depth"title="Permanent link">¶</a>"
<divid="writer-depth"/>This determines how many "top" writing credits there are for each item. Writing credits
are parsed in top billing order.
**Allowed Values:** Number greater than 0
**Default:**`3`
??? blank "`minimum` - Determines the minimum number of "top" writing credits.<aclass="headerlink"href="#writer-minimum"title="Permanent link">¶</a>"
<divid="writer-minimum"/>Determines the minimum number of "top" writing credits. For a collection for this
writer to be created they must meet 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`
??? blank "`limit` - Determines the maximum number of writer collections to create.<aclass="headerlink"href="#writer-limit"title="Permanent link">¶</a>"
<divid="writer-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>>`
??? tip "Default Template (click to expand)"
```yaml
default_template:
plex_search:
any:
writer: <<value>>
```
???+ example "Examples"
This example creates a collection for the each of the top 5 writers who appear as the "top" writing credits of
movies.
```yaml
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.
```yaml
dynamic_collections:
Writers: # mapping name does not matter just needs to be unique
type: writer
data:
depth: 1
minimum: 10
```
??? blank "`producer` - Collections based on producers.<aclass="headerlink"href="#director"title="Permanent link">¶</a>"
<divid="director"/>Creates collections for each producer found in the library based on given criteria.
<hrstyle="margin: 0px;">
**`type` Value:** `producer`
**`data` Value:** [Dictionary](../pmm/yaml.md#dictionaries) of Attributes
??? blank "`depth` - Determines how many "top" producing credits per item.<aclass="headerlink"href="#producer-depth"title="Permanent link">¶</a>"
<divid="producer-depth"/>This determines how many "top" producing credits there are for each item. Producing
credits are parsed in top billing order.
**Allowed Values:** Number greater than 0
**Default:**`3`
??? blank "`minimum` - Determines the minimum number of "top" producing credits.<aclass="headerlink"href="#producer-minimum"title="Permanent link">¶</a>"
<divid="producer-minimum"/>Determines the minimum number of "top" producing credits. For a collection for this
producer to be created they must meet 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`
??? blank "`limit` - Determines the maximum number of producer collections to create.<aclass="headerlink"href="#producer-limit"title="Permanent link">¶</a>"
<divid="producer-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>>`
??? tip "Default Template (click to expand)"
```yaml
default_template:
plex_search:
any:
producer: <<value>>
```
???+ example "Examples"
This example creates a collection for the each of the top 5 producers who appear as the "top" producing credits
of movies.
```yaml
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.
```yaml
Producers: # mapping name does not matter just needs to be unique
type: producers
data:
depth: 1
minimum: 10
```
??? blank "`genre` - Collections based on genres.<aclass="headerlink"href="#genre"title="Permanent link">¶</a>"
<divid="genre"/>Creates collections for each genre found in the library.
<hrstyle="margin: 0px;">
**`type` Value:** `genre`
**`data` Value:** Not Used
**Valid Library Types:** Movies, Shows, Music, and Video