mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-22 20:43:07 +00:00
[93] #724 fix deleting collections
This commit is contained in:
parent
699dbe8844
commit
fc0bfc3fa2
2 changed files with 3 additions and 4 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.15.1-develop92
|
||||
1.15.1-develop93
|
||||
|
|
|
@ -698,9 +698,8 @@ def library_operations(config, library):
|
|||
logger.info("")
|
||||
unmanaged_collections = []
|
||||
for col in library.get_all_collections():
|
||||
if (library.delete_collections_with_less is not None
|
||||
and (library.delete_collections_with_less == 0 or col.childCount < library.delete_collections_with_less)) \
|
||||
or (col.title not in library.collections and library.delete_unmanaged_collections):
|
||||
if (library.delete_collections_with_less and col.childCount < library.delete_collections_with_less) \
|
||||
or (library.delete_unmanaged_collections and col.title not in library.collections):
|
||||
library.query(col.delete)
|
||||
logger.info(f"{col.title} Deleted")
|
||||
elif col.title not in library.collections:
|
||||
|
|
Loading…
Reference in a new issue