From 55054d9e45b68cd4d90daf000556a7e994623ddc Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Fri, 15 Jul 2022 09:57:27 -0400 Subject: [PATCH] [30] #898 Fix blank collecitons hiding --- VERSION | 2 +- modules/builder.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 290c1ef8..388505d8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.17.1-develop29 +1.17.1-develop30 diff --git a/modules/builder.py b/modules/builder.py index 6c7e55e8..593058bb 100644 --- a/modules/builder.py +++ b/modules/builder.py @@ -2488,8 +2488,10 @@ class CollectionBuilder: advance_update = False if "collection_mode" in self.details: - if int(self.obj.collectionMode) not in plex.collection_mode_keys \ + if (self.blank_collection and self.created) or int(self.obj.collectionMode) not in plex.collection_mode_keys \ or plex.collection_mode_keys[int(self.obj.collectionMode)] != self.details["collection_mode"]: + if self.blank_collection and self.created: + self.library.collection_mode_query(self.obj, "default") self.library.collection_mode_query(self.obj, self.details["collection_mode"]) logger.info(f"Collection Mode | {self.details['collection_mode']}") advance_update = True