From c0eae9e79508a6d64d3fe879ffb60296eb659ddf Mon Sep 17 00:00:00 2001 From: bullmoose20 Date: Wed, 22 Nov 2023 06:57:38 -0500 Subject: [PATCH] Update definition.md to include default_percent example --- docs/builders/details/definition.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/builders/details/definition.md b/docs/builders/details/definition.md index 0afb6f1a..f277f924 100644 --- a/docs/builders/details/definition.md +++ b/docs/builders/details/definition.md @@ -38,4 +38,18 @@ All the following attributes serve various functions as how the definition funct | `default_percent` | **Description:** Used to declare the default percent for `episodes`, `seasons`, `tracks`, and `albums` [special filters](../filters.md#special-filters). Default is 50.
**Values:** Integer between 1 and 100 | | `ignore_blank_results` | **Description:** Used to not have Errors resulting from blank results from builders.
**Default:** `false`
**Values:** `true` or `false` | | `only_run_on_create` | **Description:** Used to only run the collection definition if the collection doesn't already exist.
**Default:** `false`
**Values:** `true` or `false` | -| `delete_collections_named` | **Description:** Used to delete any collections in your plex named one of the given collections.
**Values:** List of Collection Names to delete |[environmental.md](..%2F..%2Fpmm%2Fessentials%2Fenvironmental.md) \ No newline at end of file +| `delete_collections_named` | **Description:** Used to delete any collections in your plex named one of the given collections.
**Values:** List of Collection Names to delete |[environmental.md](..%2F..%2Fpmm%2Fessentials%2Fenvironmental.md) + +An example of using `default_percent` which is used in an external yml file and not within config.yml: +```yml + HDR10Plus: + default_percent: 35 #default default_percent is 50 + template: + - name: Resolution + weight: 400 + opt1: hdr10p + plex_search: + all: + hdr: true + filters: + filepath.regex: 'HDR10\+|HDR10P'