From d0c2230cfc46883aa983d688060596f8aac7645b Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Tue, 15 Nov 2022 02:56:31 -0500 Subject: [PATCH] [20] fix deleting collections --- VERSION | 2 +- docs/conf.py | 3 +-- modules/meta.py | 1 + modules/operations.py | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/VERSION b/VERSION index 49c9c74a..03389141 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.18.0-develop19 +1.18.0-develop20 diff --git a/docs/conf.py b/docs/conf.py index bbd0ad73..ba07deb4 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -157,8 +157,7 @@ html_theme_options = { ("Path Types", "config/paths"), ("_menu", "Library Operations", "config/operations", [ ("Assets For All", "config/operations", "#assets-for-all"), - ("Delete Collections With Less", "config/operations", "#delete-collections-with-less"), - ("Delete Unmanaged Collections", "config/operations", "#delete-unmanaged-collections"), + ("Delete Collections", "config/operations", "#delete-collections"), ("Mass Genre Update", "config/operations", "#mass-genre-update"), ("Mass Content Rating Update", "config/operations", "#mass-content-rating-update"), ("Mass Original Title Update", "config/operations", "#mass-original-title-update"), diff --git a/modules/meta.py b/modules/meta.py index 2a228d53..0fb3b7c8 100644 --- a/modules/meta.py +++ b/modules/meta.py @@ -304,6 +304,7 @@ class DataFile: variables["original_key_name"] = variables["key_name"] if variables["key_name"] in key_name_variables: variables["key_name"] = key_name_variables[variables["key_name"]] + variables["translated_key_name"] = variables["key_name"] def replace_var(input_item, search_dicts): if not isinstance(search_dicts, list): diff --git a/modules/operations.py b/modules/operations.py index 1fd5323a..c7df827f 100644 --- a/modules/operations.py +++ b/modules/operations.py @@ -715,8 +715,8 @@ class Operations: logger.info("") less = self.library.delete_collections["less"] if self.library.delete_collections and self.library.delete_collections["less"] is not None else None - managed = self.library.delete_collections["managed"] if self.library.delete_collections else False - configured = self.library.delete_collections["configured"] if self.library.delete_collections else False + managed = self.library.delete_collections["managed"] if self.library.delete_collections else None + configured = self.library.delete_collections["configured"] if self.library.delete_collections else None unmanaged_collections = [] unconfigured_collections = [] all_collections = self.library.get_all_collections()