|
|
@ -7,7 +7,9 @@ For example, an actor collection might look like this:
|
|
|
|
```yaml
|
|
|
|
```yaml
|
|
|
|
collections:
|
|
|
|
collections:
|
|
|
|
Bruce Lee:
|
|
|
|
Bruce Lee:
|
|
|
|
actor: tmdb
|
|
|
|
plex_search:
|
|
|
|
|
|
|
|
all:
|
|
|
|
|
|
|
|
actor: tmdb
|
|
|
|
tmdb_person: 19429
|
|
|
|
tmdb_person: 19429
|
|
|
|
sort_title: !_Bruce Lee
|
|
|
|
sort_title: !_Bruce Lee
|
|
|
|
sync_mode: sync
|
|
|
|
sync_mode: sync
|
|
|
@ -19,13 +21,17 @@ Then you add another:
|
|
|
|
```yaml
|
|
|
|
```yaml
|
|
|
|
collections:
|
|
|
|
collections:
|
|
|
|
Bruce Lee:
|
|
|
|
Bruce Lee:
|
|
|
|
actor: tmdb
|
|
|
|
plex_search:
|
|
|
|
|
|
|
|
all:
|
|
|
|
|
|
|
|
actor: tmdb
|
|
|
|
tmdb_person: 19429
|
|
|
|
tmdb_person: 19429
|
|
|
|
sort_title: !_Bruce Lee
|
|
|
|
sort_title: !_Bruce Lee
|
|
|
|
sync_mode: sync
|
|
|
|
sync_mode: sync
|
|
|
|
collection_order: release
|
|
|
|
collection_order: release
|
|
|
|
Chris Pratt:
|
|
|
|
Chris Pratt:
|
|
|
|
actor: tmdb
|
|
|
|
plex_search:
|
|
|
|
|
|
|
|
all:
|
|
|
|
|
|
|
|
actor: tmdb
|
|
|
|
tmdb_person: 73457
|
|
|
|
tmdb_person: 73457
|
|
|
|
sort_title: !_Chris Pratt
|
|
|
|
sort_title: !_Chris Pratt
|
|
|
|
sync_mode: sync
|
|
|
|
sync_mode: sync
|
|
|
@ -45,7 +51,9 @@ For example, a template for those two collections might look like this:
|
|
|
|
```yaml
|
|
|
|
```yaml
|
|
|
|
templates:
|
|
|
|
templates:
|
|
|
|
Actor:
|
|
|
|
Actor:
|
|
|
|
actor: tmdb
|
|
|
|
plex_search:
|
|
|
|
|
|
|
|
all:
|
|
|
|
|
|
|
|
actor: tmdb
|
|
|
|
tmdb_person: <<person>>
|
|
|
|
tmdb_person: <<person>>
|
|
|
|
sort_title: !_<<collection_name>>
|
|
|
|
sort_title: !_<<collection_name>>
|
|
|
|
sync_mode: sync
|
|
|
|
sync_mode: sync
|
|
|
@ -85,7 +93,9 @@ Here's the full example Actor template and two different ways to use it, as it w
|
|
|
|
```yaml
|
|
|
|
```yaml
|
|
|
|
templates:
|
|
|
|
templates:
|
|
|
|
Actor:
|
|
|
|
Actor:
|
|
|
|
actor: tmdb
|
|
|
|
plex_search:
|
|
|
|
|
|
|
|
all:
|
|
|
|
|
|
|
|
actor: tmdb
|
|
|
|
tmdb_person: <<person>>
|
|
|
|
tmdb_person: <<person>>
|
|
|
|
sort_title: !_<<collection_name>>
|
|
|
|
sort_title: !_<<collection_name>>
|
|
|
|
sync_mode: sync
|
|
|
|
sync_mode: sync
|
|
|
@ -99,6 +109,34 @@ collections:
|
|
|
|
person: 73457
|
|
|
|
person: 73457
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Multi-Template Variables
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
When using multiple Templates in a single definition you can send the same variable to all templates by using the `variables` attribute.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
|
|
|
|
templates:
|
|
|
|
|
|
|
|
Actor:
|
|
|
|
|
|
|
|
plex_search:
|
|
|
|
|
|
|
|
all:
|
|
|
|
|
|
|
|
actor: tmdb
|
|
|
|
|
|
|
|
tmdb_person: <<person>>
|
|
|
|
|
|
|
|
sort_title: !_<<collection_name>>
|
|
|
|
|
|
|
|
Common:
|
|
|
|
|
|
|
|
summary: "Movies that <<collection_name>> (TMDb ID: <<person>>) are in"
|
|
|
|
|
|
|
|
sync_mode: sync
|
|
|
|
|
|
|
|
collection_order: release
|
|
|
|
|
|
|
|
collections:
|
|
|
|
|
|
|
|
Bruce Lee:
|
|
|
|
|
|
|
|
variables: {person: 19429}
|
|
|
|
|
|
|
|
template: [{name: Actor}, {name: Common}]
|
|
|
|
|
|
|
|
Chris Pratt:
|
|
|
|
|
|
|
|
variables:
|
|
|
|
|
|
|
|
person: 19429
|
|
|
|
|
|
|
|
template:
|
|
|
|
|
|
|
|
- name: Actor
|
|
|
|
|
|
|
|
- name: Common
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Special Template Attributes
|
|
|
|
## Special Template Attributes
|
|
|
|
|
|
|
|
|
|
|
|
There are some attributes unique to `templates`; `default`, `optional`, `conditionals`, and `move_prefix`.
|
|
|
|
There are some attributes unique to `templates`; `default`, `optional`, `conditionals`, and `move_prefix`.
|
|
|
|