mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
fix anilist_search
This commit is contained in:
parent
1ad1068c8d
commit
28cd0752bd
1 changed files with 1 additions and 1 deletions
|
@ -791,7 +791,7 @@ class CollectionBuilder:
|
|||
new_dictionary[search_attr] = str(search_data)
|
||||
elif search_final not in ["sort_by", "limit"]:
|
||||
raise Failed(f"Collection Error: {method_name} {search_final} attribute not supported")
|
||||
if len(new_dictionary) > 0:
|
||||
if len(new_dictionary) == 0:
|
||||
raise Failed(f"Collection Error: {method_name} must have at least one valid search option")
|
||||
new_dictionary["sort_by"] = util.parse("sort_by", dict_data, methods=dict_methods, parent=method_name, default="score", options=["score", "popular"])
|
||||
new_dictionary["limit"] = util.parse("limit", dict_data, datatype="int", methods=dict_methods, default=0, parent=method_name)
|
||||
|
|
Loading…
Reference in a new issue