Browse Source

update DB

pull/123/head
ltdrdata 1 year ago
parent
commit
ab3e301cad
  1. 50
      custom-node-list.json
  2. 10
      node_db/new/custom-node-list.json
  3. 8
      scanner.py

50
custom-node-list.json

@ -1822,16 +1822,6 @@
"install_type": "git-clone",
"description": "Node for generating almost seamless textures, based on similar setting from A1111."
},
{
"author": "chrisgoringe",
"title": "Variation seeds",
"reference": "https://github.com/chrisgoringe/cg-noise",
"files": [
"https://github.com/chrisgoringe/cg-noise"
],
"install_type": "git-clone",
"description": "Adds KSampler custom nodes with variation seed and variation strength."
},
{
"author": "BiffMunky",
"title": "Endless Nodes",
@ -1942,6 +1932,16 @@
"install_type": "git-clone",
"description": "A custom node that pauses the flow while you choose which image (or latent) to pass on to the rest of the workflow."
},
{
"author": "chrisgoringe",
"title": "Use Everwhere",
"reference": "https://github.com/chrisgoringe/cg-use-everywhere",
"files": [
"https://github.com/chrisgoringe/cg-use-everwhere"
],
"install_type": "git-clone",
"description": "A set of nodes that allow data to be 'broadcast' to some or all unconnected inputs. Greatly reduces link spaghetti."
},
{
"author": "TGu-97",
"title": "TGu Utilities",
@ -2243,36 +2243,6 @@
],
"install_type": "unzip",
"description": "This is a node to convert an image into a CMYK Halftone dot image."
},
{
"author": "chrisgoringe",
"title": "Variation seeds",
"reference": "https://github.com/chrisgoringe/cg-noise",
"files": [
"https://github.com/chrisgoringe/cg-noise"
],
"install_type": "git-clone",
"description": "Adds KSampler custom nodes with variation seed and variation strength."
},
{
"author": "chrisgoringe",
"title": "Image chooser",
"reference": "https://github.com/chrisgoringe/cg-image-picker",
"files": [
"https://github.com/chrisgoringe/cg-image-picker"
],
"install_type": "git-clone",
"description": "A custom node that pauses the flow while you choose which image (or latent) to pass on to the rest of the workflow."
},
{
"author": "chrisgoringe",
"title": "Use Everwhere",
"reference": "https://github.com/chrisgoringe/cg-use-everywhere",
"files": [
"https://github.com/chrisgoringe/cg-use-everwhere",
],
"install_type": "git-clone",
"description": "A set of nodes that allow data to be 'broadcast' to some or all unconnected inputs. Greatly reduces link spaghetti."
}
]
}

10
node_db/new/custom-node-list.json

@ -1,5 +1,15 @@
{
"custom_nodes": [
{
"author": "chrisgoringe",
"title": "Use Everwhere",
"reference": "https://github.com/chrisgoringe/cg-use-everywhere",
"files": [
"https://github.com/chrisgoringe/cg-use-everwhere"
],
"install_type": "git-clone",
"description": "A set of nodes that allow data to be 'broadcast' to some or all unconnected inputs. Greatly reduces link spaghetti."
},
{
"author": "azazeal04",
"title": "ComfyUI-Styles",

8
scanner.py

@ -103,7 +103,7 @@ def get_nodes(target_dir):
def get_git_urls_from_json(json_file):
with open(json_file) as file:
with open(json_file, encoding='utf-8') as file:
data = json.load(file)
custom_nodes = data.get('custom_nodes', [])
@ -118,7 +118,7 @@ def get_git_urls_from_json(json_file):
def get_py_urls_from_json(json_file):
with open(json_file) as file:
with open(json_file, encoding='utf-8') as file:
data = json.load(file)
custom_nodes = data.get('custom_nodes', [])
@ -237,7 +237,7 @@ def gen_json(node_info):
if os.path.exists(node_list_json_path):
git_url, title = node_info[extension]
with open(node_list_json_path, 'r') as f:
with open(node_list_json_path, 'r', encoding='utf-8') as f:
node_list_json = json.load(f)
metadata_in_url = {}
@ -256,7 +256,7 @@ def gen_json(node_info):
data[git_url] = (nodes, metadata_in_url)
json_path = f"extension-node-map.json"
with open(json_path, "w") as file:
with open(json_path, "w", encoding='utf-8') as file:
json.dump(data, file, indent=4, sort_keys=True)

Loading…
Cancel
Save