[20] fix deleting collections

pull/1184/head
meisnate12 2 years ago
parent 19b6fff1a7
commit d0c2230cfc

@ -1 +1 @@
1.18.0-develop19
1.18.0-develop20

@ -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"),

@ -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):

@ -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()

Loading…
Cancel
Save