MCPcopy
hub / github.com/Comfy-Org/ComfyUI-Manager / get_git_urls_from_json

Function get_git_urls_from_json

scanner.py:393–407  ·  view source on GitHub ↗
(json_file)

Source from the content-addressed store, hash-verified

391
392
393def get_git_urls_from_json(json_file):
394 with open(json_file, encoding='utf-8') as file:
395 data = json.load(file)
396
397 custom_nodes = data.get('custom_nodes', [])
398 git_clone_files = []
399 for node in custom_nodes:
400 if node.get('install_type') == 'git-clone':
401 files = node.get('files', [])
402 if files:
403 git_clone_files.append((files[0], node.get('title'), node.get('preemptions'), node.get('nodename_pattern')))
404
405 git_clone_files.append(("https://github.com/comfyanonymous/ComfyUI", "ComfyUI", None, None))
406
407 return git_clone_files
408
409
410def get_py_urls_from_json(json_file):

Callers 1

update_custom_nodesFunction · 0.85

Calls 2

getMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected