update DB

This commit is contained in:
ltdrdata 2023-09-29 22:31:04 +09:00
parent d5e91d9ce3
commit ab3e301cad
3 changed files with 24 additions and 44 deletions

View File

@ -1822,16 +1822,6 @@
"install_type": "git-clone", "install_type": "git-clone",
"description": "Node for generating almost seamless textures, based on similar setting from A1111." "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", "author": "BiffMunky",
"title": "Endless Nodes", "title": "Endless Nodes",
@ -1942,6 +1932,16 @@
"install_type": "git-clone", "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." "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", "author": "TGu-97",
"title": "TGu Utilities", "title": "TGu Utilities",
@ -2243,36 +2243,6 @@
], ],
"install_type": "unzip", "install_type": "unzip",
"description": "This is a node to convert an image into a CMYK Halftone dot image." "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."
} }
] ]
} }

View File

@ -1,5 +1,15 @@
{ {
"custom_nodes": [ "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", "author": "azazeal04",
"title": "ComfyUI-Styles", "title": "ComfyUI-Styles",

View File

@ -103,7 +103,7 @@ def get_nodes(target_dir):
def get_git_urls_from_json(json_file): 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) data = json.load(file)
custom_nodes = data.get('custom_nodes', []) 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): 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) data = json.load(file)
custom_nodes = data.get('custom_nodes', []) custom_nodes = data.get('custom_nodes', [])
@ -237,7 +237,7 @@ def gen_json(node_info):
if os.path.exists(node_list_json_path): if os.path.exists(node_list_json_path):
git_url, title = node_info[extension] 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) node_list_json = json.load(f)
metadata_in_url = {} metadata_in_url = {}
@ -256,7 +256,7 @@ def gen_json(node_info):
data[git_url] = (nodes, metadata_in_url) data[git_url] = (nodes, metadata_in_url)
json_path = f"extension-node-map.json" 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) json.dump(data, file, indent=4, sort_keys=True)