Plex-Meta-Manager/docs/defaults/show/country.md

54 lines
3.1 KiB
Markdown
Raw Normal View History

# Country Default Metadata File
2022-09-27 15:08:18 +00:00
The `show/country` Metadata File is used to dynamically create collections based on the countries available in your library.
2022-09-27 15:08:18 +00:00
Example Collections Created:
![](../images/country1.png)
2022-09-27 15:08:18 +00:00
2022-09-27 22:01:34 +00:00
The below YAML in your config.yml will create the collections:
2022-09-27 15:08:18 +00:00
```yaml
libraries:
Movies:
metadata_path:
- pmm: show/country
2022-09-27 15:08:18 +00:00
```
## Color Style
Below is a screenshot of the alternative `color` style which can be set via template variables
2022-09-27 15:08:18 +00:00
![](../images/country2.png)
2022-09-27 15:08:18 +00:00
## Template Variables
Template Variables can be used to manipulate the file from the default settings which are provided.
Note that the `templates_variables:` section only needs to be used if you do NOT want to use the default settings.
All [Shared Variables](../variables) are available as well as the additional Variables below which can be used to customize the file.
2022-09-27 15:08:18 +00:00
| Variable | Description & Values |
|:-----------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `sort_by` | **Description:** Controls the sort method for the collections<br>**Values:** Any sort method in the [Sorts Options Table](#sort-options) |
| `include` | **Description:** Overrides the default include list<br>**Values:** Any Content Rating found in your library |
| `exclude` | **Description:** Overrides the default exclude list<br>**Values:** Any Content Rating found in your library |
| `addons` | **Description:** Defines how multiple keys can be combined under a parent key. The parent key doesn't have to already exist in Plex<br>**Values:** Any Content Rating found in your library |
| `append_include` | **Description:** Appends to the existing include list<br>**Values:** Any Content Rating found in your library |
| `append_exclude` | **Description:** Appends to the existing exclude list<br>**Values:** Any Content Rating found in your library |
| `append_addons` | **Description:** Appends to the existing addons list<br>**Values:** Any Content Rating found in your library |
2022-09-27 15:08:18 +00:00
2022-10-08 16:31:06 +00:00
The below is an example config.yml extract with some Template Variables added in to change how the file works.
2022-09-27 15:08:18 +00:00
```yaml
libraries:
Movies:
metadata_path:
- pmm: country
2022-09-27 15:08:18 +00:00
template_variables:
exclude:
- fr
2022-09-27 15:08:18 +00:00
sort_by: title.asc
collection_section: 8
collection_mode: show_items
use_other: false
use_separator: false
sep_style: purple
```