From c53c98d35548ca6c6e2d0e7725e6b64532610924 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Sat, 8 Apr 2023 20:10:55 -0400 Subject: [PATCH] [175] fix name_format and summary_format --- VERSION | 2 +- defaults/movie/country.yml | 1 - defaults/templates.yml | 14 ++++++++---- docs/defaults/award/bafta.md | 2 ++ docs/defaults/award/cannes.md | 2 ++ docs/defaults/award/choice.md | 2 ++ docs/defaults/award/emmy.md | 4 +++- docs/defaults/award/golden.md | 2 ++ docs/defaults/award/oscars.md | 2 ++ docs/defaults/award/spirit.md | 2 ++ docs/defaults/award/sundance.md | 2 ++ docs/defaults/both/actor.md | 4 ++-- docs/defaults/both/audio_language.md | 6 ++--- docs/defaults/both/content_rating_cs.md | 28 +++++++++++------------- docs/defaults/both/content_rating_mal.md | 28 +++++++++++------------- docs/defaults/both/content_rating_uk.md | 28 +++++++++++------------- docs/defaults/both/genre.md | 4 ++-- docs/defaults/both/resolution.md | 6 ++--- docs/defaults/both/streaming.md | 4 ++-- docs/defaults/both/studio.md | 4 ++-- docs/defaults/both/studio_anime.md | 4 ++-- docs/defaults/both/subtitle_language.md | 24 ++++++++++---------- docs/defaults/movie/content_rating_us.md | 28 +++++++++++------------- docs/defaults/movie/country.md | 6 ++--- docs/defaults/movie/decade.md | 4 ++-- docs/defaults/movie/director.md | 4 ++-- docs/defaults/movie/producer.md | 4 ++-- docs/defaults/movie/seasonal.md | 4 ++-- docs/defaults/movie/writer.md | 4 ++-- docs/defaults/show/content_rating_us.md | 28 +++++++++++------------- docs/defaults/show/country.md | 6 ++--- docs/defaults/show/decade.md | 4 ++-- docs/defaults/show/network.md | 4 ++-- modules/builder.py | 7 +++--- 34 files changed, 140 insertions(+), 138 deletions(-) diff --git a/VERSION b/VERSION index 96523e8b..d5abcc15 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.18.3-develop174 +1.18.3-develop175 diff --git a/defaults/movie/country.yml b/defaults/movie/country.yml index 64584dc1..dd4b8a0d 100644 --- a/defaults/movie/country.yml +++ b/defaults/movie/country.yml @@ -16,7 +16,6 @@ collections: template: - name: separator separator: country - - name: translation key_name: Country translation_key: separator diff --git a/defaults/templates.yml b/defaults/templates.yml index 6a77887b..fb447614 100644 --- a/defaults/templates.yml +++ b/defaults/templates.yml @@ -5,16 +5,14 @@ templates: sep_style: orig collection_section: "00" url_poster_<>: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/separators/<>/<>.jpg - summary_<>: <> - name_<>: <> optional: - use_separator - collection_mode - placeholder_tmdb_movie - placeholder_tvdb_show - placeholder_imdb_id - - summary_format - - name_format + - summary_<> + - name_<> - key_name - translation_key conditionals: @@ -45,10 +43,18 @@ templates: name_<>: conditions: - dynamic: true + <>_name.exists: true + value: <<<>_name>> + - dynamic: true + key.not: other value: <> summary_<>: conditions: - dynamic: true + <>_summary.exists: true + value: <<<>_summary>> + - dynamic: true + key.not: other value: <> default: collection_section: "00" diff --git a/docs/defaults/award/bafta.md b/docs/defaults/award/bafta.md index c5e0480e..7347f74a 100644 --- a/docs/defaults/award/bafta.md +++ b/docs/defaults/award/bafta.md @@ -45,6 +45,8 @@ All [Shared Collection Variables](../collection_variables) are available as well | `collection_order_<>`1 | **Description:** Changes the Collection Order of the specified key's collection.
**Default:** `collection_order`
**Values:**
`release`Order Collection by Release Dates
`alpha`Order Collection Alphabetically
`custom`Order Collection Via the Builder Order
[Any `plex_search` Sort Option](../../metadata/builders/plex.md#sort-options)Order Collection by any `plex_search` Sort Option
| | `data` | **Description:** Replaces the `data` dynamic collection value.
AttributeDescription & Values
startingControls the starting year for collections
Default: current_year-5
Values: Number greater than 0
endingControls the ending year for collections
Default: current_year
Values: Number greater than 1
incrementControls the increment (i.e. every 5th year)
Default: 1
Values: Number greater than 0
  • starting and ending can also have the value current_year
  • You can also use a value relative to the current_year by doing current_year-5
| | `exclude` | **Description:** Exclude these Years from creating a Dynamic Collection.
**Values:** List of Years | +| `name_format` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `BAFTA <>`
**Values:** Any string with `<>` in it. | +| `summary_format` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<> BAFTA Awards.`
**Values:** Any string with `<>` in it. | 1. Each default collection has a `key` that when calling to effect a specific collection you must replace `<>` with when calling. diff --git a/docs/defaults/award/cannes.md b/docs/defaults/award/cannes.md index c1004c90..66152f9e 100644 --- a/docs/defaults/award/cannes.md +++ b/docs/defaults/award/cannes.md @@ -45,6 +45,8 @@ All [Shared Collection Variables](../collection_variables) are available as well | `collection_order_<>`1 | **Description:** Changes the Collection Order of the specified key's collection.
**Default:** `collection_order`
**Values:**
`release`Order Collection by Release Dates
`alpha`Order Collection Alphabetically
`custom`Order Collection Via the Builder Order
[Any `plex_search` Sort Option](../../metadata/builders/plex.md#sort-options)Order Collection by any `plex_search` Sort Option
| | `data` | **Description:** Replaces the `data` dynamic collection value.
AttributeDescription & Values
startingControls the starting year for collections
Default: current_year-5
Values: Number greater than 0
endingControls the ending year for collections
Default: current_year
Values: Number greater than 1
incrementControls the increment (i.e. every 5th year)
Default: 1
Values: Number greater than 0
  • starting and ending can also have the value current_year
  • You can also use a value relative to the current_year by doing current_year-5
| | `exclude` | **Description:** Exclude these Years from creating a Dynamic Collection.
**Values:** List of Years | +| `name_format` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `Cannes <>`
**Values:** Any string with `<>` in it. | +| `summary_format` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<> Cannes Awards.`
**Values:** Any string with `<>` in it. | 1. Each default collection has a `key` that when calling to effect a specific collection you must replace `<>` with when calling. diff --git a/docs/defaults/award/choice.md b/docs/defaults/award/choice.md index 843b607b..3052acb8 100644 --- a/docs/defaults/award/choice.md +++ b/docs/defaults/award/choice.md @@ -47,6 +47,8 @@ All [Shared Collection Variables](../collection_variables) are available as well | `collection_order_<>`1 | **Description:** Changes the Collection Order of the specified key's collection.
**Default:** `collection_order`
**Values:**
`release`Order Collection by Release Dates
`alpha`Order Collection Alphabetically
`custom`Order Collection Via the Builder Order
[Any `plex_search` Sort Option](../../metadata/builders/plex.md#sort-options)Order Collection by any `plex_search` Sort Option
| | `data` | **Description:** Replaces the `data` dynamic collection value.
AttributeDescription & Values
startingControls the starting year for collections
Default: current_year-5
Values: Number greater than 0
endingControls the ending year for collections
Default: current_year
Values: Number greater than 1
incrementControls the increment (i.e. every 5th year)
Default: 1
Values: Number greater than 0
  • starting and ending can also have the value current_year
  • You can also use a value relative to the current_year by doing current_year-5
| | `exclude` | **Description:** Exclude these Years from creating a Dynamic Collection.
**Values:** List of Years | +| `name_format` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `Critics Choice <>`
**Values:** Any string with `<>` in it. | +| `summary_format` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<> Critics Choice Awards.`
**Values:** Any string with `<>` in it. | 1. Each default collection has a `key` that when calling to effect a specific collection you must replace `<>` with when calling. diff --git a/docs/defaults/award/emmy.md b/docs/defaults/award/emmy.md index 46a12699..e0298793 100644 --- a/docs/defaults/award/emmy.md +++ b/docs/defaults/award/emmy.md @@ -38,13 +38,15 @@ All [Shared Collection Variables](../collection_variables) are available as well | Variable | Description & Values | |:---------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| `use_year_collections` | **Description:** Turn the individual year collections off.
**Values:** `false` to turn off the collections | +| `use_year_collections` | **Description:** Turn the individual year collections off.
**Values:** `false` to turn off the collections | | `sync_mode` | **Description:** Changes the Sync Mode for all collections in a Defaults file.
**Default:** `sync`
**Values:**
`sync`Add and Remove Items based on Builders
`append`Only Add Items based on Builders
| | `sync_mode_<>`1 | **Description:** Changes the Sync Mode of the specified key's collection.
**Default:** `sync_mode`
**Values:**
`sync`Add and Remove Items based on Builders
`append`Only Add Items based on Builders
| | `collection_order` | **Description:** Changes the Collection Order for all collections in a Defaults file.
**Default:** `custom`
**Values:**
`release`Order Collection by Release Dates
`alpha`Order Collection Alphabetically
`custom`Order Collection Via the Builder Order
[Any `plex_search` Sort Option](../../metadata/builders/plex.md#sort-options)Order Collection by any `plex_search` Sort Option
| | `collection_order_<>`1 | **Description:** Changes the Collection Order of the specified key's collection.
**Default:** `collection_order`
**Values:**
`release`Order Collection by Release Dates
`alpha`Order Collection Alphabetically
`custom`Order Collection Via the Builder Order
[Any `plex_search` Sort Option](../../metadata/builders/plex.md#sort-options)Order Collection by any `plex_search` Sort Option
| | `data` | **Description:** Replaces the `data` dynamic collection value.
AttributeDescription & Values
startingControls the starting year for collections
Default: current_year-5
Values: Number greater than 0
endingControls the ending year for collections
Default: current_year
Values: Number greater than 1
incrementControls the increment (i.e. every 5th year)
Default: 1
Values: Number greater than 0
  • starting and ending can also have the value current_year
  • You can also use a value relative to the current_year by doing current_year-5
| | `exclude` | **Description:** Exclude these Years from creating a Dynamic Collection.
**Values:** List of Years | +| `name_format` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `Emmys <>`
**Values:** Any string with `<>` in it. | +| `summary_format` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<> Emmy Winners.`
**Values:** Any string with `<>` in it. | 1. Each default collection has a `key` that when calling to effect a specific collection you must replace `<>` with when calling. diff --git a/docs/defaults/award/golden.md b/docs/defaults/award/golden.md index 4177b309..9babde9c 100644 --- a/docs/defaults/award/golden.md +++ b/docs/defaults/award/golden.md @@ -49,6 +49,8 @@ All [Shared Collection Variables](../collection_variables) are available as well | `collection_order_<>`1 | **Description:** Changes the Collection Order of the specified key's collection.
**Default:** `collection_order`
**Values:**
`release`Order Collection by Release Dates
`alpha`Order Collection Alphabetically
`custom`Order Collection Via the Builder Order
[Any `plex_search` Sort Option](../../metadata/builders/plex.md#sort-options)Order Collection by any `plex_search` Sort Option
| | `data` | **Description:** Replaces the `data` dynamic collection value.
AttributeDescription & Values
startingControls the starting year for collections
Default: current_year-5
Values: Number greater than 0
endingControls the ending year for collections
Default: current_year
Values: Number greater than 1
incrementControls the increment (i.e. every 5th year)
Default: 1
Values: Number greater than 0
  • starting and ending can also have the value current_year
  • You can also use a value relative to the current_year by doing current_year-5
| | `exclude` | **Description:** Exclude these Years from creating a Dynamic Collection.
**Values:** List of Years | +| `name_format` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `Golden Globe <>`
**Values:** Any string with `<>` in it. | +| `summary_format` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<> Golden Globe Winners.`
**Values:** Any string with `<>` in it. | 1. Each default collection has a `key` that when calling to effect a specific collection you must replace `<>` with when calling. diff --git a/docs/defaults/award/oscars.md b/docs/defaults/award/oscars.md index 2cd1c63c..f04cc39a 100644 --- a/docs/defaults/award/oscars.md +++ b/docs/defaults/award/oscars.md @@ -44,6 +44,8 @@ All [Shared Collection Variables](../collection_variables) are available as well | `collection_order_<>`1 | **Description:** Changes the Collection Order of the specified key's collection.
**Default:** `collection_order`
**Values:**
`release`Order Collection by Release Dates
`alpha`Order Collection Alphabetically
`custom`Order Collection Via the Builder Order
[Any `plex_search` Sort Option](../../metadata/builders/plex.md#sort-options)Order Collection by any `plex_search` Sort Option
| | `data` | **Description:** Replaces the `data` dynamic collection value.
AttributeDescription & Values
startingControls the starting year for collections
Default: current_year-6
Values: Number greater than 0
endingControls the ending year for collections
Default: current_year-1
Values: Number greater than 1
incrementControls the increment (i.e. every 5th year)
Default: 1
Values: Number greater than 0
  • starting and ending can also have the value current_year
  • You can also use a value relative to the current_year by doing current_year-5
| | `exclude` | **Description:** Exclude these Years from creating a Dynamic Collection.
**Values:** List of Years | +| `name_format` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `Oscars Winners <>`
**Values:** Any string with `<>` in it. | +| `summary_format` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `Academy Awards (Oscars) Winners for <>.`
**Values:** Any string with `<>` in it. | 1. Each default collection has a `key` that when calling to effect a specific collection you must replace `<>` with when calling. diff --git a/docs/defaults/award/spirit.md b/docs/defaults/award/spirit.md index b4509281..1d1e5c33 100644 --- a/docs/defaults/award/spirit.md +++ b/docs/defaults/award/spirit.md @@ -44,6 +44,8 @@ All [Shared Collection Variables](../collection_variables) are available as well | `collection_order_<>`1 | **Description:** Changes the Collection Order of the specified key's collection.
**Default:** `collection_order`
**Values:**
`release`Order Collection by Release Dates
`alpha`Order Collection Alphabetically
`custom`Order Collection Via the Builder Order
[Any `plex_search` Sort Option](../../metadata/builders/plex.md#sort-options)Order Collection by any `plex_search` Sort Option
| | `data` | **Description:** Replaces the `data` dynamic collection value.
AttributeDescription & Values
startingControls the starting year for collections
Default: current_year-5
Values: Number greater than 0
endingControls the ending year for collections
Default: current_year
Values: Number greater than 1
incrementControls the increment (i.e. every 5th year)
Default: 1
Values: Number greater than 0
  • starting and ending can also have the value current_year
  • You can also use a value relative to the current_year by doing current_year-5
| | `exclude` | **Description:** Exclude these Years from creating a Dynamic Collection.
**Values:** List of Years | +| `name_format` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `Independent Spirit Awards <>`
**Values:** Any string with `<>` in it. | +| `summary_format` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<> Independent Spirit Awards.`
**Values:** Any string with `<>` in it. | 1. Each default collection has a `key` that when calling to effect a specific collection you must replace `<>` with when calling. diff --git a/docs/defaults/award/sundance.md b/docs/defaults/award/sundance.md index 774efdb1..7dabaf67 100644 --- a/docs/defaults/award/sundance.md +++ b/docs/defaults/award/sundance.md @@ -45,6 +45,8 @@ All [Shared Collection Variables](../collection_variables) are available as well | `collection_order_<>`1 | **Description:** Changes the Collection Order of the specified key's collection.
**Default:** `collection_order`
**Values:**
`release`Order Collection by Release Dates
`alpha`Order Collection Alphabetically
`custom`Order Collection Via the Builder Order
[Any `plex_search` Sort Option](../../metadata/builders/plex.md#sort-options)Order Collection by any `plex_search` Sort Option
| | `data` | **Description:** Replaces the `data` dynamic collection value.
AttributeDescription & Values
startingControls the starting year for collections
Default: current_year-5
Values: Number greater than 0
endingControls the ending year for collections
Default: current_year
Values: Number greater than 1
incrementControls the increment (i.e. every 5th year)
Default: 1
Values: Number greater than 0
  • starting and ending can also have the value current_year
  • You can also use a value relative to the current_year by doing current_year-5
| | `exclude` | **Description:** Exclude these Years from creating a Dynamic Collection.
**Values:** List of Years | +| `name_format` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `Sundance Film Festival <>`
**Values:** Any string with `<>` in it. | +| `summary_format` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `Sundance Film Festival of <>.`
**Values:** Any string with `<>` in it. | 1. Each default collection has a `key` that when calling to effect a specific collection you must replace `<>` with when calling. diff --git a/docs/defaults/both/actor.md b/docs/defaults/both/actor.md index df54f569..e960ab0d 100644 --- a/docs/defaults/both/actor.md +++ b/docs/defaults/both/actor.md @@ -50,8 +50,8 @@ This file contains a [Separator](../separators) so all [Shared Separator Variabl | `data` | **Description:** Replaces the `data` dynamic collection value.
AttributeDescription & Values
depthControls the depth within the casting credits to search for common actors
Default: 5
Values: Number greater than 0
limitControls the maximum number of collections to create
Default: 25
Values: Number greater than 0
| | `include` | **Description:** Force these Actors to be included to create a Dynamic Collection.
**Values:** List of Actor Names | | `exclude` | **Description:** Exclude these Actors from creating a Dynamic Collection.
**Values:** List of Actor Names | -| `actor_name` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<>`
**Values:** Any string with `<>` in it. | -| `actor_summary` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s with <>.`
**Values:** Any string with `<>` in it. | +| `name_format` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<>`
**Values:** Any string with `<>` in it. | +| `summary_format` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s with <>.`
**Values:** Any string with `<>` in it. | | `tmdb_person_offset` | **Description:** Changes the summary `tmdb_person_offset` for specific People.
**Default:** `0`
**Values:** Dictionary of Actor Name as the keys and the `tmdb_person_offset` as the value. | 1. Each default collection has a `key` that when calling to effect a specific collection you must replace `<>` with when calling. diff --git a/docs/defaults/both/audio_language.md b/docs/defaults/both/audio_language.md index 898cf33f..27d6a8bb 100644 --- a/docs/defaults/both/audio_language.md +++ b/docs/defaults/both/audio_language.md @@ -49,10 +49,8 @@ This file contains a [Separator](../separators) so all [Shared Separator Variabl | `include` | **Description:** Overrides the [default include list](#default-include)
**Values:** List of [ISO 639-1 codes](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) | | `exclude` | **Description:** Exclude these Audio Languages from creating a Dynamic Collection.
**Values:** List of [ISO 639-1 codes](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) | | `append_include` | **Description:** Appends to the [default include list](#default-include)
**Values:** List of [ISO 639-1 codes](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) | -| `audio_language_name` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<> Audio`
**Values:** Any string with `<>` in it. | -| `audio_language_other_name` | **Description:** Changes the Other Collection name.
**Default:** `Other Audio`
**Values:** Any string. | -| `audio_language_summary` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s filmed in the <> Language.`
**Values:** Any string. | -| `audio_language_other_summary` | **Description:** Changes the Other Collection summary.
**Default:** `<>s filmed in other uncommon Languages.`
**Values:** Any string. | +| `name_format` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<> Audio`
**Values:** Any string with `<>` in it. | +| `summary_format` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s filmed in the <> Language.`
**Values:** Any string. | 1. Each default collection has a `key` that when calling to effect a specific collection you must replace `<>` with when calling. diff --git a/docs/defaults/both/content_rating_cs.md b/docs/defaults/both/content_rating_cs.md index c8845016..49c87fba 100644 --- a/docs/defaults/both/content_rating_cs.md +++ b/docs/defaults/both/content_rating_cs.md @@ -44,21 +44,19 @@ All [Shared Collection Variables](../collection_variables) are available as well This file contains a [Separator](../separators) so all [Shared Separator Variables](../separators.md#shared-separator-variables) are available as well. -| Variable | Description & Values | -|:-------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| `limit` | **Description:** Changes the Builder Limit for all collections in a Defaults file.
**Values:** Number Greater then 0 | -| `limit_<>`1 | **Description:** Changes the Builder Limit of the specified key's collection.
**Default:** `limit`
**Values:** Number Greater then 0 | -| `sort_by` | **Description:** Changes the Smart Filter Sort for all collections in a Defaults file.
**Default:** `release.desc`
**Values:** [Any `smart_filter` Sort Option](../../metadata/builders/smart.md#sort-options) | -| `sort_by_<>`1 | **Description:** Changes the Smart Filter Sort of the specified key's collection.
**Default:** `sort_by`
**Values:** [Any `smart_filter` Sort Option](../../metadata/builders/smart.md#sort-options) | -| `include` | **Description:** Overrides the [default include list](#default-include).
**Values:** List of Content Ratings found in your library | -| `exclude` | **Description:** Exclude these Content Ratings from creating a Dynamic Collection.
**Values:** List of Content Ratings found in your library | -| `addons` | **Description:** Overrides the [default addons dictionary](#default-addons). Defines how multiple keys can be combined under a parent key. The parent key doesn't have to already exist in Plex
**Values:** Dictionary List of Content Ratings found in your library | -| `append_include` | **Description:** Appends to the [default include list](#default-include).
**Values:** List of Content Ratings found in your library | -| `append_addons` | **Description:** Appends to the [default addons dictionary](#default-addons).
**Values:** Dictionary List of Content Ratings found in your library | -| `content_rating_cs_name` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `Age <>+ <>s`
**Values:** Any string with `<>` in it. | -| `content_rating_other_name` | **Description:** Changes the Other Collection name.
**Default:** `Not Rated <>s`
**Values:** Any string. | -| `content_rating_cs_summary` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s that are rated <> accorfing to the Common Sense Rating System.`
**Values:** Any string. | -| `content_rating_other_summary` | **Description:** Changes the Other Collection summary.
**Default:** `<>s that are Unrated, Not Rated or any other uncommon Ratings.`
**Values:** Any string. | +| Variable | Description & Values | +|:------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `limit` | **Description:** Changes the Builder Limit for all collections in a Defaults file.
**Values:** Number Greater then 0 | +| `limit_<>`1 | **Description:** Changes the Builder Limit of the specified key's collection.
**Default:** `limit`
**Values:** Number Greater then 0 | +| `sort_by` | **Description:** Changes the Smart Filter Sort for all collections in a Defaults file.
**Default:** `release.desc`
**Values:** [Any `smart_filter` Sort Option](../../metadata/builders/smart.md#sort-options) | +| `sort_by_<>`1 | **Description:** Changes the Smart Filter Sort of the specified key's collection.
**Default:** `sort_by`
**Values:** [Any `smart_filter` Sort Option](../../metadata/builders/smart.md#sort-options) | +| `include` | **Description:** Overrides the [default include list](#default-include).
**Values:** List of Content Ratings found in your library | +| `exclude` | **Description:** Exclude these Content Ratings from creating a Dynamic Collection.
**Values:** List of Content Ratings found in your library | +| `addons` | **Description:** Overrides the [default addons dictionary](#default-addons). Defines how multiple keys can be combined under a parent key. The parent key doesn't have to already exist in Plex
**Values:** Dictionary List of Content Ratings found in your library | +| `append_include` | **Description:** Appends to the [default include list](#default-include).
**Values:** List of Content Ratings found in your library | +| `append_addons` | **Description:** Appends to the [default addons dictionary](#default-addons).
**Values:** Dictionary List of Content Ratings found in your library | +| `name_format` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `Age <>+ <>s`
**Values:** Any string with `<>` in it. | +| `summary_format` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s that are rated <> accorfing to the Common Sense Rating System.`
**Values:** Any string. | 1. Each default collection has a `key` that when calling to effect a specific collection you must replace `<>` with when calling. diff --git a/docs/defaults/both/content_rating_mal.md b/docs/defaults/both/content_rating_mal.md index c9168846..48a11c75 100644 --- a/docs/defaults/both/content_rating_mal.md +++ b/docs/defaults/both/content_rating_mal.md @@ -44,21 +44,19 @@ All [Shared Collection Variables](../collection_variables) are available as well This file contains a [Separator](../separators) so all [Shared Separator Variables](../separators.md#shared-separator-variables) are available as well. -| Variable | Description & Values | -|:-------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| `limit` | **Description:** Changes the Builder Limit for all collections in a Defaults file.
**Values:** Number Greater then 0 | -| `limit_<>`1 | **Description:** Changes the Builder Limit of the specified key's collection.
**Default:** `limit`
**Values:** Number Greater then 0 | -| `sort_by` | **Description:** Changes the Smart Filter Sort for all collections in a Defaults file.
**Default:** `release.desc`
**Values:** [Any `smart_filter` Sort Option](../../metadata/builders/smart.md#sort-options) | -| `sort_by_<>`1 | **Description:** Changes the Smart Filter Sort of the specified key's collection.
**Default:** `sort_by`
**Values:** [Any `smart_filter` Sort Option](../../metadata/builders/smart.md#sort-options) | -| `include` | **Description:** Overrides the [default include list](#default-include).
**Values:** List of Content Ratings found in your library | -| `exclude` | **Description:** Exclude these Content Ratings from creating a Dynamic Collection.
**Values:** List of Content Ratings found in your library | -| `addons` | **Description:** Overrides the [default addons dictionary](#default-addons). Defines how multiple keys can be combined under a parent key. The parent key doesn't have to already exist in Plex
**Values:** Dictionary List of Content Ratings found in your library | -| `append_include` | **Description:** Appends to the [default include list](#default-include).
**Values:** List of Content Ratings found in your library | -| `append_addons` | **Description:** Appends to the [default addons dictionary](#default-addons).
**Values:** Dictionary List of Content Ratings found in your library | -| `content_rating_name` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<> <>s`
**Values:** Any string with `<>` in it. | -| `content_rating_other_name` | **Description:** Changes the Other Collection name.
**Default:** `Not Rated <>s`
**Values:** Any string. | -| `content_rating_summary` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s that are rated <>.`
**Values:** Any string. | -| `content_rating_other_summary` | **Description:** Changes the Other Collection summary.
**Default:** `<>s that are Unrated, Not Rated or any other uncommon Ratings.`
**Values:** Any string. | +| Variable | Description & Values | +|:------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `limit` | **Description:** Changes the Builder Limit for all collections in a Defaults file.
**Values:** Number Greater then 0 | +| `limit_<>`1 | **Description:** Changes the Builder Limit of the specified key's collection.
**Default:** `limit`
**Values:** Number Greater then 0 | +| `sort_by` | **Description:** Changes the Smart Filter Sort for all collections in a Defaults file.
**Default:** `release.desc`
**Values:** [Any `smart_filter` Sort Option](../../metadata/builders/smart.md#sort-options) | +| `sort_by_<>`1 | **Description:** Changes the Smart Filter Sort of the specified key's collection.
**Default:** `sort_by`
**Values:** [Any `smart_filter` Sort Option](../../metadata/builders/smart.md#sort-options) | +| `include` | **Description:** Overrides the [default include list](#default-include).
**Values:** List of Content Ratings found in your library | +| `exclude` | **Description:** Exclude these Content Ratings from creating a Dynamic Collection.
**Values:** List of Content Ratings found in your library | +| `addons` | **Description:** Overrides the [default addons dictionary](#default-addons). Defines how multiple keys can be combined under a parent key. The parent key doesn't have to already exist in Plex
**Values:** Dictionary List of Content Ratings found in your library | +| `append_include` | **Description:** Appends to the [default include list](#default-include).
**Values:** List of Content Ratings found in your library | +| `append_addons` | **Description:** Appends to the [default addons dictionary](#default-addons).
**Values:** Dictionary List of Content Ratings found in your library | +| `name_format` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<> <>s`
**Values:** Any string with `<>` in it. | +| `summary_format` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s that are rated <>.`
**Values:** Any string. | 1. Each default collection has a `key` that when calling to effect a specific collection you must replace `<>` with when calling. diff --git a/docs/defaults/both/content_rating_uk.md b/docs/defaults/both/content_rating_uk.md index 78c343ea..10be4de4 100644 --- a/docs/defaults/both/content_rating_uk.md +++ b/docs/defaults/both/content_rating_uk.md @@ -44,21 +44,19 @@ All [Shared Collection Variables](../collection_variables) are available as well This file contains a [Separator](../separators) so all [Shared Separator Variables](../separators.md#shared-separator-variables) are available as well. -| Variable | Description & Values | -|:-------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| `limit` | **Description:** Changes the Builder Limit for all collections in a Defaults file.
**Values:** Number Greater then 0 | -| `limit_<>`1 | **Description:** Changes the Builder Limit of the specified key's collection.
**Default:** `limit`
**Values:** Number Greater then 0 | -| `sort_by` | **Description:** Changes the Smart Filter Sort for all collections in a Defaults file.
**Default:** `release.desc`
**Values:** [Any `smart_filter` Sort Option](../../metadata/builders/smart.md#sort-options) | -| `sort_by_<>`1 | **Description:** Changes the Smart Filter Sort of the specified key's collection.
**Default:** `sort_by`
**Values:** [Any `smart_filter` Sort Option](../../metadata/builders/smart.md#sort-options) | -| `include` | **Description:** Overrides the [default include list](#default-include).
**Values:** List of Content Ratings found in your library | -| `exclude` | **Description:** Exclude these Content Ratings from creating a Dynamic Collection.
**Values:** List of Content Ratings found in your library | -| `addons` | **Description:** Overrides the [default addons dictionary](#default-addons). Defines how multiple keys can be combined under a parent key. The parent key doesn't have to already exist in Plex
**Values:** Dictionary List of Content Ratings found in your library | -| `append_include` | **Description:** Appends to the [default include list](#default-include).
**Values:** List of Content Ratings found in your library | -| `append_addons` | **Description:** Appends to the [default addons dictionary](#default-addons).
**Values:** Dictionary List of Content Ratings found in your library | -| `content_rating_name` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<> <>s`
**Values:** Any string with `<>` in it. | -| `content_rating_other_name` | **Description:** Changes the Other Collection name.
**Default:** `Not Rated <>s`
**Values:** Any string. | -| `content_rating_summary` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s that are rated <>.`
**Values:** Any string. | -| `content_rating_other_summary` | **Description:** Changes the Other Collection summary.
**Default:** `<>s that are Unrated, Not Rated or any other uncommon Ratings.`
**Values:** Any string. | +| Variable | Description & Values | +|:------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `limit` | **Description:** Changes the Builder Limit for all collections in a Defaults file.
**Values:** Number Greater then 0 | +| `limit_<>`1 | **Description:** Changes the Builder Limit of the specified key's collection.
**Default:** `limit`
**Values:** Number Greater then 0 | +| `sort_by` | **Description:** Changes the Smart Filter Sort for all collections in a Defaults file.
**Default:** `release.desc`
**Values:** [Any `smart_filter` Sort Option](../../metadata/builders/smart.md#sort-options) | +| `sort_by_<>`1 | **Description:** Changes the Smart Filter Sort of the specified key's collection.
**Default:** `sort_by`
**Values:** [Any `smart_filter` Sort Option](../../metadata/builders/smart.md#sort-options) | +| `include` | **Description:** Overrides the [default include list](#default-include).
**Values:** List of Content Ratings found in your library | +| `exclude` | **Description:** Exclude these Content Ratings from creating a Dynamic Collection.
**Values:** List of Content Ratings found in your library | +| `addons` | **Description:** Overrides the [default addons dictionary](#default-addons). Defines how multiple keys can be combined under a parent key. The parent key doesn't have to already exist in Plex
**Values:** Dictionary List of Content Ratings found in your library | +| `append_include` | **Description:** Appends to the [default include list](#default-include).
**Values:** List of Content Ratings found in your library | +| `append_addons` | **Description:** Appends to the [default addons dictionary](#default-addons).
**Values:** Dictionary List of Content Ratings found in your library | +| `name_format` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<> <>s`
**Values:** Any string with `<>` in it. | +| `summary_format` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s that are rated <>.`
**Values:** Any string. | 1. Each default collection has a `key` that when calling to effect a specific collection you must replace `<>` with when calling. diff --git a/docs/defaults/both/genre.md b/docs/defaults/both/genre.md index 55ced387..637c9f49 100644 --- a/docs/defaults/both/genre.md +++ b/docs/defaults/both/genre.md @@ -50,8 +50,8 @@ This file contains a [Separator](../separators) so all [Shared Separator Variabl | `exclude` | **Description:** Exclude these Genres from creating a Dynamic Collection.
**Values:** List of Genres found in your library | | `addons` | **Description:** Overrides the [default addons dictionary](#default-addons). Defines how multiple keys can be combined under a parent key. The parent key doesn't have to already exist in Plex
**Values:** Dictionary List of Genres found in your library | | `append_addons` | **Description:** Appends to the [default addons dictionary](#default-addons).
**Values:** Dictionary List of Genres found in your library | -| `genre_name` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<> <>s`
**Values:** Any string with `<>` in it. | -| `genre_summary` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s that have the genre <>.`
**Values:** Any string. | +| `name_format` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<> <>s`
**Values:** Any string with `<>` in it. | +| `summary_format` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s that have the genre <>.`
**Values:** Any string. | 1. Each default collection has a `key` that when calling to effect a specific collection you must replace `<>` with when calling. diff --git a/docs/defaults/both/resolution.md b/docs/defaults/both/resolution.md index 788b5b15..8e934aba 100644 --- a/docs/defaults/both/resolution.md +++ b/docs/defaults/both/resolution.md @@ -59,10 +59,8 @@ This file contains a [Separator](../separators) so all [Shared Separator Variabl | `addons` | **Description:** Overrides the [default addons dictionary](#default-addons). Defines how multiple keys can be combined under a parent key. The parent key doesn't have to already exist in Plex
**Values:** Dictionary List of Resolutions found in your library | | `append_include` | **Description:** Appends to the [default include list](#default-include).
**Values:** List of Resolutions found in your library | | `append_addons` | **Description:** Appends to the [default addons dictionary](#default-addons).
**Values:** Dictionary List of Resolutions found in your library | -| `resolution_name` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<> <>s`
**Values:** Any string with `<>` in it. | -| `resolution_summary` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s that have the resolution <>.`
**Values:** Any string. | -| `resolution_other_name` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `Other Resolution <>s`
**Values:** Any string with `<>` in it. | -| `resolution_other_summary` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s that have other uncommon resolutions.`
**Values:** Any string. | +| `name_format` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<> <>s`
**Values:** Any string with `<>` in it. | +| `summary_format` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s that have the resolution <>.`
**Values:** Any string. | 1. Each default collection has a `key` that when calling to effect a specific collection you must replace `<>` with when calling. diff --git a/docs/defaults/both/streaming.md b/docs/defaults/both/streaming.md index 09c98f26..c4279165 100644 --- a/docs/defaults/both/streaming.md +++ b/docs/defaults/both/streaming.md @@ -65,8 +65,8 @@ This file contains a [Separator](../separators) so all [Shared Separator Variabl | `sync_mode_<>`1 | **Description:** Changes the Sync Mode of the specified key's collection.
**Default:** `sync_mode`
**Values:**
`sync`Add and Remove Items based on Builders
`append`Only Add Items based on Builders
| | `exclude` | **Description:** Exclude these Streaming Services from creating a Dynamic Collection.
**Values:** List of Streaming Service Keys | | `region` | **Description:** Changes some Streaming Service lists to regional variants (see below table for more information.
**Default:** `us`
**Values:** `us`,`uk`,`ca`, `da`, `de`, `es`, `fr`, `it`, `pt-br` | -| `streaming_name` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<> <>s`
**Values:** Any string with `<>` in it. | -| `streaming_summary` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s streaming on <>.`
**Values:** Any string. | +| `name_format` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<> <>s`
**Values:** Any string with `<>` in it. | +| `summary_format` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s streaming on <>.`
**Values:** Any string. | 1. Each default collection has a `key` that when calling to effect a specific collection you must replace `<>` with when calling. diff --git a/docs/defaults/both/studio.md b/docs/defaults/both/studio.md index 817e21fd..84fdcb8f 100644 --- a/docs/defaults/both/studio.md +++ b/docs/defaults/both/studio.md @@ -52,8 +52,8 @@ This file contains a [Separator](../separators) so all [Shared Separator Variabl | `addons` | **Description:** Overrides the [default addons dictionary](#default-addons). Defines how multiple keys can be combined under a parent key. The parent key doesn't have to already exist in Plex
**Values:** Dictionary List of Studios found in your library | | `append_include` | **Description:** Appends to the [default include list](#default-include).
**Values:** List of Studios found in your library | | `append_addons` | **Description:** Appends to the [default addons dictionary](#default-addons).
**Values:** Dictionary List of Studios found in your library | -| `resolution_name` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<> <>s`
**Values:** Any string with `<>` in it. | -| `resolution_summary` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s that have the resolution <>.`
**Values:** Any string. | +| `name_format` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<> <>s`
**Values:** Any string with `<>` in it. | +| `summary_format` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s that have the resolution <>.`
**Values:** Any string. | 1. Each default collection has a `key` that when calling to effect a specific collection you must replace `<>` with when calling. diff --git a/docs/defaults/both/studio_anime.md b/docs/defaults/both/studio_anime.md index 06d345ee..985694a5 100644 --- a/docs/defaults/both/studio_anime.md +++ b/docs/defaults/both/studio_anime.md @@ -50,8 +50,8 @@ This file contains a [Separator](../separators) so all [Shared Separator Variabl | `addons` | **Description:** Overrides the [default addons dictionary](#default-addons). Defines how multiple keys can be combined under a parent key. The parent key doesn't have to already exist in Plex
**Values:** Dictionary List of Studios found in your library | | `append_include` | **Description:** Appends to the [default include list](#default-include).
**Values:** List of Studios found in your library | | `append_addons` | **Description:** Appends to the [default addons dictionary](#default-addons).
**Values:** Dictionary List of Studios found in your library | -| `resolution_name` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<> <>s`
**Values:** Any string with `<>` in it. | -| `resolution_summary` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s that have the resolution <>.`
**Values:** Any string. | +| `name_format` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<> <>s`
**Values:** Any string with `<>` in it. | +| `summary_format` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s that have the resolution <>.`
**Values:** Any string. | 1. Each default collection has a `key` that when calling to effect a specific collection you must replace `<>` with when calling. diff --git a/docs/defaults/both/subtitle_language.md b/docs/defaults/both/subtitle_language.md index 81ffcb55..2b7c8722 100644 --- a/docs/defaults/both/subtitle_language.md +++ b/docs/defaults/both/subtitle_language.md @@ -40,19 +40,17 @@ All [Shared Collection Variables](../collection_variables) are available as well This file contains a [Separator](../separators) so all [Shared Separator Variables](../separators.md#shared-separator-variables) are available as well. -| Variable | Description & Values | -|:----------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| `limit` | **Description:** Changes the Builder Limit for all collections in a Defaults file.
**Values:** Number Greater then 0 | -| `limit_<>`1 | **Description:** Changes the Builder Limit of the specified key's collection.
**Default:** `limit`
**Values:** Number Greater then 0 | -| `sort_by` | **Description:** Changes the Smart Filter Sort for all collections in a Defaults file.
**Default:** `release.desc`
**Values:** [Any `smart_filter` Sort Option](../../metadata/builders/smart.md#sort-options) | -| `sort_by_<>`1 | **Description:** Changes the Smart Filter Sort of the specified key's collection.
**Default:** `sort_by`
**Values:** [Any `smart_filter` Sort Option](../../metadata/builders/smart.md#sort-options) | -| `include` | **Description:** Overrides the [default include list](#default-include)
**Values:** List of [ISO 639-1 codes](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) | -| `exclude` | **Description:** Exclude these Subtitle Languages from creating a Dynamic Collection.
**Values:** List of [ISO 639-1 codes](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) | -| `append_include` | **Description:** Appends to the [default include list](#default-include)
**Values:** List of [ISO 639-1 codes](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) | -| `subtitle_language_name` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<> Subtitles`
**Values:** Any string with `<>` in it. | -| `subtitle_language_other_name` | **Description:** Changes the Other Collection name.
**Default:** `Other Subtitles`
**Values:** Any string. | -| `subtitle_language_summary` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s with <> Subtitles.`
**Values:** Any string. | -| `subtitle_language_other_summary` | **Description:** Changes the Other Collection summary.
**Default:** `<>s with other uncommon Subtitles.`
**Values:** Any string. | +| Variable | Description & Values | +|:------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `limit` | **Description:** Changes the Builder Limit for all collections in a Defaults file.
**Values:** Number Greater then 0 | +| `limit_<>`1 | **Description:** Changes the Builder Limit of the specified key's collection.
**Default:** `limit`
**Values:** Number Greater then 0 | +| `sort_by` | **Description:** Changes the Smart Filter Sort for all collections in a Defaults file.
**Default:** `release.desc`
**Values:** [Any `smart_filter` Sort Option](../../metadata/builders/smart.md#sort-options) | +| `sort_by_<>`1 | **Description:** Changes the Smart Filter Sort of the specified key's collection.
**Default:** `sort_by`
**Values:** [Any `smart_filter` Sort Option](../../metadata/builders/smart.md#sort-options) | +| `include` | **Description:** Overrides the [default include list](#default-include)
**Values:** List of [ISO 639-1 codes](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) | +| `exclude` | **Description:** Exclude these Subtitle Languages from creating a Dynamic Collection.
**Values:** List of [ISO 639-1 codes](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) | +| `append_include` | **Description:** Appends to the [default include list](#default-include)
**Values:** List of [ISO 639-1 codes](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) | +| `name_format` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<> Subtitles`
**Values:** Any string with `<>` in it. | +| `summary_format` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s with <> Subtitles.`
**Values:** Any string. | 1. Each default collection has a `key` that when calling to effect a specific collection you must replace `<>` with when calling. diff --git a/docs/defaults/movie/content_rating_us.md b/docs/defaults/movie/content_rating_us.md index 2c858156..37c70d4d 100644 --- a/docs/defaults/movie/content_rating_us.md +++ b/docs/defaults/movie/content_rating_us.md @@ -43,21 +43,19 @@ All [Shared Collection Variables](../collection_variables) are available as well This file contains a [Separator](../separators) so all [Shared Separator Variables](../separators.md#shared-separator-variables) are available as well. -| Variable | Description & Values | -|:--------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| `limit` | **Description:** Changes the Builder Limit for all collections in a Defaults file.
**Values:** Number Greater then 0 | -| `limit_<>`1 | **Description:** Changes the Builder Limit of the specified key's collection.
**Default:** `limit`
**Values:** Number Greater then 0 | -| `sort_by` | **Description:** Changes the Smart Filter Sort for all collections in a Defaults file.
**Default:** `release.desc`
**Values:** [Any `smart_filter` Sort Option](../../metadata/builders/smart.md#sort-options) | -| `sort_by_<>`1 | **Description:** Changes the Smart Filter Sort of the specified key's collection.
**Default:** `sort_by`
**Values:** [Any `smart_filter` Sort Option](../../metadata/builders/smart.md#sort-options) | -| `include` | **Description:** Overrides the [default include list](#default-include).
**Values:** List of Content Ratings found in your library | -| `exclude` | **Description:** Exclude these Content Ratings from creating a Dynamic Collection.
**Values:** List of Content Ratings found in your library | -| `addons` | **Description:** Overrides the [default addons dictionary](#default-addons). Defines how multiple keys can be combined under a parent key. The parent key doesn't have to already exist in Plex
**Values:** Dictionary List of Content Ratings found in your library | -| `append_include` | **Description:** Appends to the [default include list](#default-include).
**Values:** List of Content Ratings found in your library | -| `append_addons` | **Description:** Appends to the [default addons dictionary](#default-addons).
**Values:** Dictionary List of Content Ratings found in your library | -| `content_rating_name` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<> <>s`
**Values:** Any string with `<>` in it. | -| `content_rating_other_name` | **Description:** Changes the Other Collection name.
**Default:** `Not Rated <>s`
**Values:** Any string. | -| `content_rating_summary` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s that are rated <>.`
**Values:** Any string. | -| `content_rating_other_summary` | **Description:** Changes the Other Collection summary.
**Default:** `<>s that are Unrated, Not Rated or any other uncommon Ratings.`
**Values:** Any string. | +| Variable | Description & Values | +|:------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `limit` | **Description:** Changes the Builder Limit for all collections in a Defaults file.
**Values:** Number Greater then 0 | +| `limit_<>`1 | **Description:** Changes the Builder Limit of the specified key's collection.
**Default:** `limit`
**Values:** Number Greater then 0 | +| `sort_by` | **Description:** Changes the Smart Filter Sort for all collections in a Defaults file.
**Default:** `release.desc`
**Values:** [Any `smart_filter` Sort Option](../../metadata/builders/smart.md#sort-options) | +| `sort_by_<>`1 | **Description:** Changes the Smart Filter Sort of the specified key's collection.
**Default:** `sort_by`
**Values:** [Any `smart_filter` Sort Option](../../metadata/builders/smart.md#sort-options) | +| `include` | **Description:** Overrides the [default include list](#default-include).
**Values:** List of Content Ratings found in your library | +| `exclude` | **Description:** Exclude these Content Ratings from creating a Dynamic Collection.
**Values:** List of Content Ratings found in your library | +| `addons` | **Description:** Overrides the [default addons dictionary](#default-addons). Defines how multiple keys can be combined under a parent key. The parent key doesn't have to already exist in Plex
**Values:** Dictionary List of Content Ratings found in your library | +| `append_include` | **Description:** Appends to the [default include list](#default-include).
**Values:** List of Content Ratings found in your library | +| `append_addons` | **Description:** Appends to the [default addons dictionary](#default-addons).
**Values:** Dictionary List of Content Ratings found in your library | +| `name_format` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<> <>s`
**Values:** Any string with `<>` in it. | +| `summary_format` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s that are rated <>.`
**Values:** Any string. | 1. Each default collection has a `key` that when calling to effect a specific collection you must replace `<>` with when calling. diff --git a/docs/defaults/movie/country.md b/docs/defaults/movie/country.md index ba453611..3c420d8f 100644 --- a/docs/defaults/movie/country.md +++ b/docs/defaults/movie/country.md @@ -57,10 +57,8 @@ This file contains a [Separator](../separators) so all [Shared Separator Variabl | `addons` | **Description:** Overrides the [default addons dictionary](#default-addons). Defines how multiple keys can be combined under a parent key. The parent key doesn't have to already exist in Plex
**Values:** Dictionary List of Countries found in your library | | `append_include` | **Description:** Appends to the [default include list](#default-include).
**Values:** List of Countries found in your library | | `append_addons` | **Description:** Appends to the [default addons dictionary](#default-addons).
**Values:** Dictionary List of Countries found in your library | -| `country_name` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<>`
**Values:** Any string with `<>` in it. | -| `country_other_name` | **Description:** Changes the Other Collection name.
**Default:** `Other Countries`
**Values:** Any string. | -| `country_summary` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s filmed in <>.`
**Values:** Any string. | -| `country_other_summary` | **Description:** Changes the Other Collection summary.
**Default:** `<>s filmed in other uncommon Countries.`
**Values:** Any string. | +| `name_format` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<>`
**Values:** Any string with `<>` in it. | +| `summary_format` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s filmed in <>.`
**Values:** Any string. | 1. Each default collection has a `key` that when calling to effect a specific collection you must replace `<>` with when calling. diff --git a/docs/defaults/movie/decade.md b/docs/defaults/movie/decade.md index b4737ccb..413af5a5 100644 --- a/docs/defaults/movie/decade.md +++ b/docs/defaults/movie/decade.md @@ -45,8 +45,8 @@ This file contains a [Separator](../separators) so all [Shared Separator Variabl | `sort_by` | **Description:** Changes the Smart Filter Sort for all collections in a Defaults file.
**Default:** `critic_rating.desc`
**Values:** [Any `smart_filter` Sort Option](../../metadata/builders/smart.md#sort-options) | | `sort_by_<>`1 | **Description:** Changes the Smart Filter Sort of the specified key's collection.
**Default:** `sort_by`
**Values:** [Any `smart_filter` Sort Option](../../metadata/builders/smart.md#sort-options) | | `exclude` | **Description:** Exclude these Decades from creating a Dynamic Collection.
**Values:** List of Decades found in your library | -| `decade_name` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `Best of <>`
**Values:** Any string with `<>` in it. | -| `decade_summary` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `Top <> <>s of the <>.`
**Values:** Any string. | +| `name_format` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `Best of <>`
**Values:** Any string with `<>` in it. | +| `summary_format` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `Top <> <>s of the <>.`
**Values:** Any string. | 1. Each default collection has a `key` that when calling to effect a specific collection you must replace `<>` with when calling. diff --git a/docs/defaults/movie/director.md b/docs/defaults/movie/director.md index 426d96ef..ce0d773e 100644 --- a/docs/defaults/movie/director.md +++ b/docs/defaults/movie/director.md @@ -47,8 +47,8 @@ This file contains a [Separator](../separators) so all [Shared Separator Variabl | `data` | **Description:** Replaces the `data` dynamic collection value.
AttributeDescription & Values
depthControls the depth within the casting credits to search for common actors
Default: 5
Values: Number greater than 0
limitControls the maximum number of collections to create
Default: 25
Values: Number greater than 0
| | `include` | **Description:** Force these Actors to be included to create a Dynamic Collection.
**Values:** List of Actor Names | | `exclude` | **Description:** Exclude these Directors from creating a Dynamic Collection.
**Values:** List of Director Names | -| `director_name` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<> (Director)`
**Values:** Any string with `<>` in it. | -| `director_summary` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s directed by <>.`
**Values:** Any string with `<>` in it. | +| `name_format` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<> (Director)`
**Values:** Any string with `<>` in it. | +| `summary_format` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s directed by <>.`
**Values:** Any string with `<>` in it. | | `tmdb_person_offset` | **Description:** Changes the summary tmdb_person_offset for specific People.
**Default:** `0`
**Values:** Dictionary of Actor Name as the keys and the tmdb_person_offset as the value. | 1. Each default collection has a `key` that when calling to effect a specific collection you must replace `<>` with when calling. diff --git a/docs/defaults/movie/producer.md b/docs/defaults/movie/producer.md index 64b2b1d2..fcf3879c 100644 --- a/docs/defaults/movie/producer.md +++ b/docs/defaults/movie/producer.md @@ -47,8 +47,8 @@ This file contains a [Separator](../separators) so all [Shared Separator Variabl | `data` | **Description:** Replaces the `data` dynamic collection value.
AttributeDescription & Values
depthControls the depth within the casting credits to search for common actors
Default: 5
Values: Number greater than 0
limitControls the maximum number of collections to create
Default: 25
Values: Number greater than 0
| | `include` | **Description:** Force these Actors to be included to create a Dynamic Collection.
**Values:** List of Actor Names | | `exclude` | **Description:** Exclude these Producers from creating a Dynamic Collection.
**Values:** List of Producer Names | -| `producer_name` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<> (Producer)`
**Values:** Any string with `<>` in it. | -| `producer_summary` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s produced by <>.`
**Values:** Any string with `<>` in it. | +| `name_format` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<> (Producer)`
**Values:** Any string with `<>` in it. | +| `summary_format` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s produced by <>.`
**Values:** Any string with `<>` in it. | | `tmdb_person_offset` | **Description:** Changes the summary tmdb_person_offset for specific People.
**Default:** `0`
**Values:** Dictionary of Actor Name as the keys and the tmdb_person_offset as the value. | 1. Each default collection has a `key` that when calling to effect a specific collection you must replace `<>` with when calling. diff --git a/docs/defaults/movie/seasonal.md b/docs/defaults/movie/seasonal.md index 6c2dd7d9..ffc63252 100644 --- a/docs/defaults/movie/seasonal.md +++ b/docs/defaults/movie/seasonal.md @@ -67,8 +67,8 @@ This file contains a [Separator](../separators) so all [Shared Separator Variabl | `data` | **Description:** Overrides the [default data dictionary](#default-data). Defines the data that the custom dynamic collection processes.
**Values:** Dictionary List of keys/names | | `append_data` | **Description:** Appends to the [default data dictionary](#default-data).
**Values:** Dictionary List of keys/names | | `exclude` | **Description:** Exclude these Seasons from creating a Dynamic Collection.
**Values:** List of Seasons Keys | -| `seasonal_name` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<> <>s`
**Values:** Any string with `<>` in it. | -| `seasonal_summary` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `A collection of <> <>s that may relate to the season.`
**Values:** Any string. | +| `name_format` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<> <>s`
**Values:** Any string with `<>` in it. | +| `summary_format` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `A collection of <> <>s that may relate to the season.`
**Values:** Any string. | 1. Each default collection has a `key` that when calling to effect a specific collection you must replace `<>` with when calling. diff --git a/docs/defaults/movie/writer.md b/docs/defaults/movie/writer.md index 5bb2ac25..cca4311b 100644 --- a/docs/defaults/movie/writer.md +++ b/docs/defaults/movie/writer.md @@ -47,8 +47,8 @@ This file contains a [Separator](../separators) so all [Shared Separator Variabl | `data` | **Description:** Replaces the `data` dynamic collection value.
AttributeDescription & Values
depthControls the depth within the casting credits to search for common actors
Default: 5
Values: Number greater than 0
limitControls the maximum number of collections to create
Default: 25
Values: Number greater than 0
| | `include` | **Description:** Force these Actors to be included to create a Dynamic Collection.
**Values:** List of Actor Names | | `exclude` | **Description:** Exclude these Writers from creating a Dynamic Collection.
**Values:** List of Writer Names | -| `writer_name` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<> (Writer)`
**Values:** Any string with `<>` in it. | -| `writer_summary` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s written by <>.`
**Values:** Any string with `<>` in it. | +| `name_format` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<> (Writer)`
**Values:** Any string with `<>` in it. | +| `summary_format` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s written by <>.`
**Values:** Any string with `<>` in it. | | `tmdb_person_offset` | **Description:** Changes the summary tmdb_person_offset for specific People.
**Default:** `0`
**Values:** Dictionary of Actor Name as the keys and the tmdb_person_offset as the value. | 1. Each default collection has a `key` that when calling to effect a specific collection you must replace `<>` with when calling. diff --git a/docs/defaults/show/content_rating_us.md b/docs/defaults/show/content_rating_us.md index 227359e4..91ce3a64 100644 --- a/docs/defaults/show/content_rating_us.md +++ b/docs/defaults/show/content_rating_us.md @@ -41,21 +41,19 @@ All [Shared Collection Variables](../collection_variables) are available as well This file contains a [Separator](../separators) so all [Shared Separator Variables](../separators.md#shared-separator-variables) are available as well. -| Variable | Description & Values | -|:-------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| `limit` | **Description:** Changes the Builder Limit for all collections in a Defaults file.
**Values:** Number Greater then 0 | -| `limit_<>`1 | **Description:** Changes the Builder Limit of the specified key's collection.
**Default:** `limit`
**Values:** Number Greater then 0 | -| `sort_by` | **Description:** Changes the Smart Filter Sort for all collections in a Defaults file.
**Default:** `release.desc`
**Values:** [Any `smart_filter` Sort Option](../../metadata/builders/smart.md#sort-options) | -| `sort_by_<>`1 | **Description:** Changes the Smart Filter Sort of the specified key's collection.
**Default:** `sort_by`
**Values:** [Any `smart_filter` Sort Option](../../metadata/builders/smart.md#sort-options) | -| `include` | **Description:** Overrides the [default include list](#default-include).
**Values:** List of Content Ratings found in your library | -| `exclude` | **Description:** Exclude these Content Ratings from creating a Dynamic Collection.
**Values:** List of Content Ratings found in your library | -| `addons` | **Description:** Overrides the [default addons dictionary](#default-addons). Defines how multiple keys can be combined under a parent key. The parent key doesn't have to already exist in Plex
**Values:** Dictionary List of Content Ratings found in your library | -| `append_include` | **Description:** Appends to the [default include list](#default-include).
**Values:** List of Content Ratings found in your library | -| `append_addons` | **Description:** Appends to the [default addons dictionary](#default-addons).
**Values:** Dictionary List of Content Ratings found in your library | -| `content_rating_name` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<> <>s`
**Values:** Any string with `<>` in it. | -| `content_rating_other_name` | **Description:** Changes the Other Collection name.
**Default:** `Not Rated <>s`
**Values:** Any string. | -| `content_rating_summary` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s that are rated <>.`
**Values:** Any string. | -| `content_rating_other_summary` | **Description:** Changes the Other Collection summary.
**Default:** `<>s that are Unrated, Not Rated or any other uncommon Ratings.`
**Values:** Any string. | +| Variable | Description & Values | +|:------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `limit` | **Description:** Changes the Builder Limit for all collections in a Defaults file.
**Values:** Number Greater then 0 | +| `limit_<>`1 | **Description:** Changes the Builder Limit of the specified key's collection.
**Default:** `limit`
**Values:** Number Greater then 0 | +| `sort_by` | **Description:** Changes the Smart Filter Sort for all collections in a Defaults file.
**Default:** `release.desc`
**Values:** [Any `smart_filter` Sort Option](../../metadata/builders/smart.md#sort-options) | +| `sort_by_<>`1 | **Description:** Changes the Smart Filter Sort of the specified key's collection.
**Default:** `sort_by`
**Values:** [Any `smart_filter` Sort Option](../../metadata/builders/smart.md#sort-options) | +| `include` | **Description:** Overrides the [default include list](#default-include).
**Values:** List of Content Ratings found in your library | +| `exclude` | **Description:** Exclude these Content Ratings from creating a Dynamic Collection.
**Values:** List of Content Ratings found in your library | +| `addons` | **Description:** Overrides the [default addons dictionary](#default-addons). Defines how multiple keys can be combined under a parent key. The parent key doesn't have to already exist in Plex
**Values:** Dictionary List of Content Ratings found in your library | +| `append_include` | **Description:** Appends to the [default include list](#default-include).
**Values:** List of Content Ratings found in your library | +| `append_addons` | **Description:** Appends to the [default addons dictionary](#default-addons).
**Values:** Dictionary List of Content Ratings found in your library | +| `name_format` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<> <>s`
**Values:** Any string with `<>` in it. | +| `summary_format` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s that are rated <>.`
**Values:** Any string. | 1. Each default collection has a `key` that when calling to effect a specific collection you must replace `<>` with when calling. diff --git a/docs/defaults/show/country.md b/docs/defaults/show/country.md index 3d9ec834..167abc66 100644 --- a/docs/defaults/show/country.md +++ b/docs/defaults/show/country.md @@ -59,10 +59,8 @@ This file contains a [Separator](../separators) so all [Shared Separator Variabl | `addons` | **Description:** Defines how multiple keys can be combined under a parent key. The parent key doesn't have to already exist in Plex
**Values:** Dictionary List of [2 digit ISO 3166-1 codes](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) | | `append_include` | **Description:** Appends to the [default include list](#default-include).
**Values:** List of [2 digit ISO 3166-1 codes](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) | | `key_name_override` | **Description:** Overrides the [default key_name_override dictionary](#default-key_name_override).
**Values:** Dictionary with `key: new_key_name` entries | -| `country_name` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<>`
**Values:** Any string with `<>` in it. | -| `country_other_name` | **Description:** Changes the Other Collection name.
**Default:** `Other Countries`
**Values:** Any string. | -| `country_summary` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s filmed in <>.`
**Values:** Any string. | -| `country_other_summary` | **Description:** Changes the Other Collection summary.
**Default:** `<>s filmed in other uncommon Countries.`
**Values:** Any string. | +| `name_format` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<>`
**Values:** Any string with `<>` in it. | +| `summary_format` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s filmed in <>.`
**Values:** Any string. | 1. Each default collection has a `key` that when calling to effect a specific collection you must replace `<>` with when calling. diff --git a/docs/defaults/show/decade.md b/docs/defaults/show/decade.md index 3ecebb76..f4c1e60e 100644 --- a/docs/defaults/show/decade.md +++ b/docs/defaults/show/decade.md @@ -45,8 +45,8 @@ This file contains a [Separator](../separators) so all [Shared Separator Variabl | `sort_by` | **Description:** Changes the Smart Filter Sort for all collections in a Defaults file.
**Default:** `critic_rating.desc`
**Values:** [Any `smart_filter` Sort Option](../../metadata/builders/smart.md#sort-options) | | `sort_by_<>`1 | **Description:** Changes the Smart Filter Sort of the specified key's collection.
**Default:** `sort_by`
**Values:** [Any `smart_filter` Sort Option](../../metadata/builders/smart.md#sort-options) | | `exclude` | **Description:** Exclude these Decades from creating a Dynamic Collection.
**Values:** List of Decades found in your library | -| `decade_name` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `Best of <>`
**Values:** Any string with `<>` in it. | -| `decade_summary` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `Top <> <>s of the <>.`
**Values:** Any string. | +| `name_format` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `Best of <>`
**Values:** Any string with `<>` in it. | +| `summary_format` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `Top <> <>s of the <>.`
**Values:** Any string. | 1. Each default collection has a `key` that when calling to effect a specific collection you must replace `<>` with when calling. diff --git a/docs/defaults/show/network.md b/docs/defaults/show/network.md index 2bd25dd3..35c195ca 100644 --- a/docs/defaults/show/network.md +++ b/docs/defaults/show/network.md @@ -47,8 +47,8 @@ This file contains a [Separator](../separators) so all [Shared Separator Variabl | `addons` | **Description:** Overrides the [default addons dictionary](#default-addons). Defines how multiple keys can be combined under a parent key. The parent key doesn't have to already exist in Plex
**Values:** Dictionary List of Networks found in your library | | `append_include` | **Description:** Appends to the [default include list](#default-include).
**Values:** List of Networks found in your library | | `append_addons` | **Description:** Appends to the [default addons dictionary](#default-addons).
**Values:** Dictionary List of Networks found in your library | -| `network_name` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<>`
**Values:** Any string with `<>` in it. | -| `network_summary` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s broadcast on <>.`
**Values:** Any string. | +| `name_format` | **Description:** Changes the title format of the Dynamic Collections.
**Default:** `<>`
**Values:** Any string with `<>` in it. | +| `summary_format` | **Description:** Changes the summary format of the Dynamic Collections.
**Default:** `<>s broadcast on <>.`
**Values:** Any string. | 1. Each default collection has a `key` that when calling to effect a specific collection you must replace `<>` with when calling. diff --git a/modules/builder.py b/modules/builder.py index 856dc9f3..cf426052 100644 --- a/modules/builder.py +++ b/modules/builder.py @@ -367,7 +367,7 @@ class CollectionBuilder: delete_cols = [] if (self.name and self.name != en_name) or (not self.name and en_name != trans_name): delete_cols.append(en_name) - if self.name and self.name != trans_name: + if self.name and self.name != trans_name and en_name != trans_name: delete_cols.append(trans_name) if delete_cols: @@ -377,10 +377,11 @@ class CollectionBuilder: elif not self.data[methods["delete_collections_named"]]: self.data[methods["delete_collections_named"]] = delete_cols elif not isinstance(self.data[methods["delete_collections_named"]], list): - delete_cols.append(self.data[methods["delete_collections_named"]]) + if self.data[methods["delete_collections_named"]] not in delete_cols: + delete_cols.append(self.data[methods["delete_collections_named"]]) self.data[methods["delete_collections_named"]] = delete_cols else: - self.data[methods["delete_collections_named"]].extend(delete_cols) + self.data[methods["delete_collections_named"]].extend([d for d in delete_cols if d not in self.data[methods["delete_collections_named"]]]) if not self.name: self.name = trans_name if trans_name else en_name