From ab3e301cadcf003d1c1f262b93c42d5ca97b4a80 Mon Sep 17 00:00:00 2001 From: ltdrdata Date: Fri, 29 Sep 2023 22:31:04 +0900 Subject: [PATCH] update DB --- custom-node-list.json | 50 +++++++------------------------ node_db/new/custom-node-list.json | 10 +++++++ scanner.py | 8 ++--- 3 files changed, 24 insertions(+), 44 deletions(-) diff --git a/custom-node-list.json b/custom-node-list.json index 78e1594d..42ddd640 100644 --- a/custom-node-list.json +++ b/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." } ] } diff --git a/node_db/new/custom-node-list.json b/node_db/new/custom-node-list.json index 47b43042..debd7cfa 100644 --- a/node_db/new/custom-node-list.json +++ b/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", diff --git a/scanner.py b/scanner.py index 147aa11a..1755cb27 100644 --- a/scanner.py +++ b/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)