From f91a5344bfa8ad1e57bdc630eeed908d5f54234a Mon Sep 17 00:00:00 2001 From: Nate Harris Date: Fri, 11 Feb 2022 10:34:42 -0700 Subject: [PATCH] - Fix collection type limiting --- plex/pmm/collections/TV_Shows_Collections.yml | 13 +++++++++---- plex/pmm/collections/movies_collections_general.yml | 7 ++++++- plex/pmm/tips_and_tricks.md | 10 ++++++++++ 3 files changed, 25 insertions(+), 5 deletions(-) diff --git a/plex/pmm/collections/TV_Shows_Collections.yml b/plex/pmm/collections/TV_Shows_Collections.yml index 2f7ec7c..b3afcd8 100644 --- a/plex/pmm/collections/TV_Shows_Collections.yml +++ b/plex/pmm/collections/TV_Shows_Collections.yml @@ -9,6 +9,7 @@ templates: Network: sort_title: ~<> 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 diff --git a/plex/pmm/collections/movies_collections_general.yml b/plex/pmm/collections/movies_collections_general.yml index 61b0a38..1ada3b6 100644 --- a/plex/pmm/collections/movies_collections_general.yml +++ b/plex/pmm/collections/movies_collections_general.yml @@ -19,6 +19,7 @@ templates: sort_title: <>+01_<> sync_mode: sync collection_order: custom + schedule: daily visible_library: true Holiday: @@ -27,6 +28,7 @@ templates: sort_title: <>+02_<> sync_mode: sync collection_order: custom + schedule: never visible_library: true Studio: @@ -35,6 +37,7 @@ templates: sort_title: <>+03_<> 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 diff --git a/plex/pmm/tips_and_tricks.md b/plex/pmm/tips_and_tricks.md index ac53a8d..49167e8 100644 --- a/plex/pmm/tips_and_tricks.md +++ b/plex/pmm/tips_and_tricks.md @@ -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)