Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions comfy_api_nodes/canary.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import av

ver = av.__version__.split(".")
if int(ver[0]) < 14:
raise Exception("INSTALL NEW VERSION OF PYAV TO USE API NODES.")

if int(ver[0]) == 14 and int(ver[1]) < 2:
raise Exception("INSTALL NEW VERSION OF PYAV TO USE API NODES.")

NODE_CLASS_MAPPINGS = {}
3 changes: 3 additions & 0 deletions nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2289,6 +2289,9 @@ def init_builtin_api_nodes():
"nodes_pika.py",
]

if not load_custom_node(os.path.join(api_nodes_dir, "canary.py"), module_parent="comfy_api_nodes"):
return api_nodes_files

import_failed = []
for node_file in api_nodes_files:
if not load_custom_node(os.path.join(api_nodes_dir, node_file), module_parent="comfy_api_nodes"):
Expand Down
Loading