mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-22 20:43:07 +00:00
fix for #186 plex_search will Fail if theres no valid search
This commit is contained in:
parent
d6336815b5
commit
96ea7baffe
1 changed files with 4 additions and 1 deletions
|
@ -717,7 +717,10 @@ class CollectionBuilder:
|
||||||
raise Failed(f"Collection Error: modifier: {modifier} not supported with the {search} plex search attribute")
|
raise Failed(f"Collection Error: modifier: {modifier} not supported with the {search} plex search attribute")
|
||||||
else:
|
else:
|
||||||
raise Failed(f"Collection Error: {search_final} plex search attribute not supported")
|
raise Failed(f"Collection Error: {search_final} plex search attribute not supported")
|
||||||
|
if len(searches) > 0:
|
||||||
self.methods.append((method_name, [searches]))
|
self.methods.append((method_name, [searches]))
|
||||||
|
else:
|
||||||
|
raise Failed("Collection Error: no valid plex search attributes")
|
||||||
elif method_name == "tmdb_discover":
|
elif method_name == "tmdb_discover":
|
||||||
new_dictionary = {"limit": 100}
|
new_dictionary = {"limit": 100}
|
||||||
for discover_name, discover_data in method_data.items():
|
for discover_name, discover_data in method_data.items():
|
||||||
|
|
Loading…
Reference in a new issue