- Fix collection type limiting

This commit is contained in:
Nate Harris 2022-02-11 10:34:42 -07:00
parent 6dfcd463c7
commit f91a5344bf
3 changed files with 25 additions and 5 deletions

View File

@ -9,6 +9,7 @@ templates:
Network:
sort_title: ~<<collection_name>>
smart_filter:
type: shows
sort_by: title.desc
validate: false
any:
@ -32,9 +33,10 @@ collections:
collection_level: episode
smart_filter:
all:
type: episodes
# Episode aired in the last 8 days
episode_air_date: 8
collection_order: release
sort_by: release.desc
sync_mode: sync
visible_home: true
visible_shared: true
@ -47,9 +49,10 @@ collections:
collection_level: episode
smart_filter:
all:
type: episodes
# Episode added in the last 7 days
episode_added: 7
collection_order: release
sort_by: release.desc
sync_mode: sync
visible_home: true
visible_shared: true
@ -60,9 +63,10 @@ collections:
sort_title:
smart_filter:
all:
type: shows
# Shows added in the last 30 days
added: 30
collection_order: release
sort_by: release.desc
sync_mode: sync
visible_library: true
visible_home: true
@ -98,9 +102,10 @@ collections:
collection_level: episode
smart_filter:
all:
type: episodes
title.is: "The Simpsons"
episode_title.contains: "Treehouse"
collection_order: release
sort_by: release.asc
sync_mode: sync
visible_library: true
visible_home: false

View File

@ -19,6 +19,7 @@ templates:
sort_title: <<level>>+01_<<collection_name>>
sync_mode: sync
collection_order: custom
schedule: daily
visible_library: true
Holiday:
@ -27,6 +28,7 @@ templates:
sort_title: <<level>>+02_<<collection_name>>
sync_mode: sync
collection_order: custom
schedule: never
visible_library: true
Studio:
@ -35,6 +37,7 @@ templates:
sort_title: <<level>>+03_<<collection_name>>
sync_mode: sync
collection_order: custom
schedule: daily
visible_library: true
Genre:
@ -108,9 +111,10 @@ collections:
summary: "Movies now playing on Plex"
smart_filter:
all:
type: movies
# Movie added in the last 7 days
added: 7
collection_order: release
sort_by: release.desc
visible_home: true
visible_shared: true
@ -249,6 +253,7 @@ collections:
summary: "You might learn something"
smart_filter:
all:
type: movies
genre: Documentary
visible_home: false
visible_shared: false

View File

@ -30,3 +30,13 @@ Prefix suggestions:
- https://github.com/meisnate12/Plex-Meta-Manager/wiki/Plex-Builders#sort-options
- If a collection is made of multiple lists, can't use `custom`
- Recommend sorting instead by `popularity.desc`
- Can't use `collection_order` for Plex `smart_filter` rules. Replacements:
- `collection_order: release` -> `sort_by: release.desc`
- `collection_order: alpha` -> `sort_by: title.desc`
- `collection_order: custom` -> `sort_by: ??`
## Filters
- Type restrictions
- Plex `smart_filter`/`plex_search`: Use, i.e. `type: episodes`, to limit collection to [specific type](https://github.com/meisnate12/Plex-Meta-Manager/wiki/Plex-Builders#special-attributes)
- All other rules: Use, i.e., `collection_level: episodes`, to limit collection to [specific type](https://github.com/meisnate12/Plex-Meta-Manager/wiki/Metadata-Details#metadata-details)