mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-25 22:10:22 +00:00
fix build collections
This commit is contained in:
parent
42b4666c1c
commit
0ffb335973
1 changed files with 3 additions and 2 deletions
|
@ -437,13 +437,14 @@ class CollectionBuilder:
|
|||
self.smart = self.smart_url or self.smart_label_collection
|
||||
|
||||
test_sort = None
|
||||
if "collection_order" in methods and not self.playlist:
|
||||
if "collection_order" in methods and not self.playlist and self.build_collection:
|
||||
if self.data[methods["collection_order"]] is None:
|
||||
raise Failed(f"{self.Type} Warning: collection_order attribute is blank")
|
||||
else:
|
||||
test_sort = self.data[methods["collection_order"]]
|
||||
elif "collection_order" not in methods and not self.playlist and self.library.default_collection_order and not self.smart:
|
||||
elif "collection_order" not in methods and not self.playlist and self.build_collection and self.library.default_collection_order and not self.smart:
|
||||
test_sort = self.library.default_collection_order
|
||||
logger.warning("")
|
||||
logger.warning(f"{self.Type} Warning: collection_order not found using library default_collection_order: {self.library.default_collection_order}")
|
||||
self.custom_sort = self.playlist
|
||||
if test_sort:
|
||||
|
|
Loading…
Reference in a new issue