bugfix: invalid layout

bugfix: scanner.py for CP949
update DB
This commit is contained in:
Dr.Lt.Data 2023-07-01 09:31:35 +09:00
parent fc68b10bb3
commit 0bc9c5e4b4
4 changed files with 30 additions and 5 deletions

View File

@ -475,6 +475,16 @@
"install_type": "git-clone", "install_type": "git-clone",
"description": "This extension provides the ability to combine multiple nodes into a single node." "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", "author": "space-nuko",
"title": "Disco Diffusion", "title": "Disco Diffusion",

View File

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

View File

@ -400,8 +400,14 @@ class CustomNodesInstaller extends ComfyDialog {
data1.style.textAlign = "center"; data1.style.textAlign = "center";
data1.innerHTML = i+1; data1.innerHTML = i+1;
var data2 = document.createElement('td'); var data2 = document.createElement('td');
data2.innerHTML = `&nbsp;${data.author}`; 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'); 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>`; data3.innerHTML = `&nbsp;<a href=${data.reference} target="_blank"><font color="skyblue"><b>${data.title}</b></font></a>`;
var data4 = document.createElement('td'); var data4 = document.createElement('td');
data4.innerHTML = data.description; data4.innerHTML = data.description;

View File

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