Skip to content

Commit

Permalink
[93] #724 fix deleting collections
Browse files Browse the repository at this point in the history
  • Loading branch information
meisnate12 committed Mar 6, 2022
1 parent 074f063 commit d9cc9ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.15.1-develop92
1.15.1-develop93
5 changes: 2 additions & 3 deletions plex_meta_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,9 +698,8 @@ def get_rating(attribute):
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:
Expand Down

0 comments on commit d9cc9ab

Please sign in to comment.