Browse Source

bugfix: invalid layout

bugfix: scanner.py for CP949
update DB
pull/25/head
Dr.Lt.Data 1 year ago
parent
commit
0bc9c5e4b4
  1. 10
      custom-node-list.json
  2. 5
      extension-node-map.json
  3. 12
      js/comfyui-manager.js
  4. 8
      scanner.py

10
custom-node-list.json

@ -475,6 +475,16 @@
"install_type": "git-clone",
"description": "This extension provides the ability to combine multiple nodes into a single node."
},
{
"author": "ssitu",
"title": "Restart Sampling",
"reference": "https://github.com/ssitu/ComfyUI_restart_sampling",
"files": [
"https://github.com/ssitu/ComfyUI_restart_sampling"
],
"install_type": "git-clone",
"description": "Unofficial ComfyUI nodes for restart sampling based on the paper 'Restart Sampling for Improving Generative Processes' <a href='https://arxiv.org/abs/2306.14878'>[paper]</a> <a href='https://github.com/Newbeeer/diffusion_restart_sampling'>[repo]</a>"
},
{
"author": "space-nuko",
"title": "Disco Diffusion",

5
extension-node-map.json

@ -858,6 +858,9 @@
"UltimateSDUpscale",
"UltimateSDUpscaleNoUpscale"
],
"https://github.com/ssitu/ComfyUI_restart_sampling": [
"KRestartSampler"
],
"https://github.com/strimmlarn/ComfyUI_Strimmlarns_aesthetic_score": [
"AesthetlcScoreSorter",
"CalculateAestheticScore",
@ -879,7 +882,9 @@
"Auto Merge Block Weighted"
],
"https://github.com/taabata/Comfy_Syrian_Falcon_Nodes/raw/main/SyrianFalconNodes.py": [
"CompositeImage",
"KSamplerAdvancedCustom",
"QRGenerate",
"WordAsImage"
],
"https://github.com/trojblue/trNodes": [

12
js/comfyui-manager.js vendored

@ -400,9 +400,15 @@ class CustomNodesInstaller extends ComfyDialog {
data1.style.textAlign = "center";
data1.innerHTML = i+1;
var data2 = document.createElement('td');
data2.innerHTML = `&nbsp;${data.author}`;
var data3 = document.createElement('td');
data3.innerHTML = `&nbsp;<a href=${data.reference} target="_blank"><font color="skyblue"><b>${data.title}</b></font></a>`;
data2.style.maxWidth = "100px";
data2.textContent = ` ${data.author}`;
data2.style.whiteSpace = "nowrap";
data2.style.overflow = "hidden";
data2.style.textOverflow = "ellipsis";
var data3 = document.createElement('td');
data3.style.maxWidth = "200px";
data3.style.wordWrap = "break-word";
data3.innerHTML = `&nbsp;<a href=${data.reference} target="_blank"><font color="skyblue"><b>${data.title}</b></font></a>`;
var data4 = document.createElement('td');
data4.innerHTML = data.description;
var data5 = document.createElement('td');

8
scanner.py

@ -6,8 +6,12 @@ from torchvision.datasets.utils import download_url
def scan_in_file(filename):
with open(filename, "r") as file:
code = file.read()
try:
with open(filename, encoding='utf-8') as file:
code = file.read()
except UnicodeDecodeError:
with open(filename, encoding='cp949') as file:
code = file.read()
pattern = r"NODE_CLASS_MAPPINGS\s*=\s*{([^}]*)}"
regex = re.compile(pattern, re.MULTILINE | re.DOTALL)

Loading…
Cancel
Save