[93] #724 fix deleting collections

pull/748/head
meisnate12 3 years ago
parent 699dbe8844
commit fc0bfc3fa2

@ -1 +1 @@
1.15.1-develop92 1.15.1-develop93

@ -698,9 +698,8 @@ def library_operations(config, library):
logger.info("") logger.info("")
unmanaged_collections = [] unmanaged_collections = []
for col in library.get_all_collections(): for col in library.get_all_collections():
if (library.delete_collections_with_less is not None if (library.delete_collections_with_less and col.childCount < library.delete_collections_with_less) \
and (library.delete_collections_with_less == 0 or col.childCount < library.delete_collections_with_less)) \ or (library.delete_unmanaged_collections and col.title not in library.collections):
or (col.title not in library.collections and library.delete_unmanaged_collections):
library.query(col.delete) library.query(col.delete)
logger.info(f"{col.title} Deleted") logger.info(f"{col.title} Deleted")
elif col.title not in library.collections: elif col.title not in library.collections:

Loading…
Cancel
Save