possible fix for #47

pull/122/head
meisnate12 4 years ago
parent adb612e69a
commit 4c3f734a5f

@ -718,6 +718,7 @@ class CollectionBuilder:
if col.title.startswith(pre) or (col.titleSort and col.titleSort.startswith(pre)): if col.title.startswith(pre) or (col.titleSort and col.titleSort.startswith(pre)):
keep_collection = False keep_collection = False
break break
if keep_collection:
for ext in value["exclude"]: for ext in value["exclude"]:
if col.title == ext or (col.titleSort and col.titleSort == ext): if col.title == ext or (col.titleSort and col.titleSort == ext):
keep_collection = False keep_collection = False
@ -730,6 +731,7 @@ class CollectionBuilder:
for i, item in enumerate(all_items, 1): for i, item in enumerate(all_items, 1):
length = util.print_return(length, f"Processing: {i}/{len(all_items)} {item.title}") length = util.print_return(length, f"Processing: {i}/{len(all_items)} {item.title}")
add_item = True add_item = True
item.reload()
for collection in item.collections: for collection in item.collections:
if collection.tag.lower() in good_collections: if collection.tag.lower() in good_collections:
add_item = False add_item = False

Loading…
Cancel
Save