From 00158f78060cc3dc8b1a5b0516510efe20962e48 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Fri, 27 May 2022 11:09:46 -0400 Subject: [PATCH] [1] fix delete_playlist --- VERSION | 2 +- docs/home/guides/defaults.md | 2 +- modules/builder.py | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/VERSION b/VERSION index 092afa15..17d0441a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.17.0 +1.17.0-develop1 diff --git a/docs/home/guides/defaults.md b/docs/home/guides/defaults.md index bf6b32f5..a68919b5 100644 --- a/docs/home/guides/defaults.md +++ b/docs/home/guides/defaults.md @@ -4,7 +4,7 @@ There is a default set of Metadata and Overlay Files located in the [PMM Folder] The intention of this directory is to offer easy to use and slightly customizable (using [`template_variables`](../../config/paths.md#template-variables)) Metadata and Overlay Files for a general user who wants nice collections but doesn't want to learn all of Plex Meta Manager. -All posters defined in the Metadata Files are stored in the [Plex Meta Manager Images](https://github.com/meisnate12/Plex-Meta-Manager-Images) Repository and all Overlay images are in the [Configs](https://github.com/meisnate12/Plex-Meta-Manager-Configs) Repository at [PMM/overlays/images](https://github.com/meisnate12/Plex-Meta-Manager-Configs/tree/sohjiro/PMM/overlays/images), which allows for changes to be made in one central location that will deploy to all users of this setup when they next run PMM. +All posters defined in the Metadata Files are stored in the [Plex Meta Manager Images](https://github.com/meisnate12/Plex-Meta-Manager-Images) Repository and all Overlay images are in the [Configs](https://github.com/meisnate12/Plex-Meta-Manager-Configs) Repository at [PMM/overlays/images](https://github.com/meisnate12/Plex-Meta-Manager-Configs/tree/master/PMM/overlays/images), which allows for changes to be made in one central location that will deploy to all users of this setup when they next run PMM. Credits to Bullmoose20 and Yozora for helping drive this entire Default Set of Configs through the concept, design and implementation. diff --git a/modules/builder.py b/modules/builder.py index e7025aee..dc1b676d 100644 --- a/modules/builder.py +++ b/modules/builder.py @@ -40,7 +40,7 @@ ignored_details = [ "smart_filter", "smart_label", "smart_url", "run_again", "schedule", "sync_mode", "template", "test", "suppress_overlays", "delete_not_scheduled", "tmdb_person", "build_collection", "collection_order", "collection_level", "overlay", "validate_builders", "libraries", "sync_to_users", "collection_name", "playlist_name", "name", "blank_collection", - "allowed_library_types" + "allowed_library_types", "delete_playlist" ] details = [ "ignore_ids", "ignore_imdb_ids", "server_preroll", "changes_webhooks", "collection_filtering", "collection_mode", "limit", "url_theme", @@ -289,9 +289,9 @@ class CollectionBuilder: if "delete_playlist" in methods: logger.debug("") - logger.debug("Validating Method: delete_not_scheduled") - logger.debug(f"Value: {data[methods['delete_not_scheduled']]}") - if util.parse(self.Type, "delete_not_scheduled", self.data, datatype="bool", methods=methods, default=False): + logger.debug("Validating Method: delete_playlist") + logger.debug(f"Value: {data[methods['delete_playlist']]}") + if util.parse(self.Type, "delete_playlist", self.data, datatype="bool", methods=methods, default=False): self.obj = self.library.get_playlist(self.name) logger.info(self.delete()) else: @@ -571,10 +571,10 @@ class CollectionBuilder: raise Failed(f"{self.Type} Warning: collection_order attribute is blank") else: test_sort = self.data[methods["collection_order"]] - elif "collection_order" not in methods and not self.playlist and self.build_collection and self.library.default_collection_order and not self.smart: + elif "collection_order" not in methods and not self.playlist and not self.blank_collection and self.build_collection and self.library.default_collection_order and not self.smart: test_sort = self.library.default_collection_order logger.warning("") - logger.warning(f"{self.Type} Warning: collection_order not found using library default_collection_order: {self.library.default_collection_order}") + logger.warning(f"{self.Type} Warning: collection_order not found using library default_collection_order: {test_sort}") self.custom_sort = self.playlist if test_sort: if self.smart: