mirror of
https://git.datalinker.icu/ltdrdata/ComfyUI-Manager
synced 2025-12-09 14:14:54 +08:00
fix: In the share feature, only image formats are allowed.
This commit is contained in:
parent
0c11c30731
commit
2bc7167ada
@ -14,7 +14,7 @@ import concurrent
|
||||
import ssl
|
||||
from urllib.parse import urlparse
|
||||
|
||||
version = "V1.0"
|
||||
version = "V1.0.1"
|
||||
print(f"### Loading: ComfyUI-Manager ({version})")
|
||||
|
||||
|
||||
|
||||
@ -603,7 +603,7 @@ app.registerExtension({
|
||||
const supported_nodes_string = SUPPORTED_OUTPUT_NODE_TYPES.join(", ");
|
||||
alert(`No supported output node found (${supported_nodes_string}). To share this workflow, please add an output node to your graph and re-run your prompt.`);
|
||||
} else {
|
||||
alert("To share this, first run a prompt. Once it's done, click 'Share'.");
|
||||
alert("To share this, first run a prompt. Once it's done, click 'Share'.\n\nNOTE: Images of the Share target can only be selected in the PreviewImage, SaveImage, and VHS_VideoCombine nodes. In the case of VHS_VideoCombine, only the image/gif and image/webp formats are supported.");
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
@ -88,6 +88,11 @@ export function getPotentialOutputsAndOutputNodes(nodes) {
|
||||
const widgetValue = node.widgets[j].value;
|
||||
const parsedURLVals = widgetValue.params;
|
||||
|
||||
if(!parsedURLVals.format.startsWith('image')) {
|
||||
// video isn't supported format
|
||||
continue;
|
||||
}
|
||||
|
||||
// ensure that the parsedURLVals have 'filename', 'subfolder', 'type', and 'format' properties
|
||||
if (parsedURLVals.hasOwnProperty("filename") && parsedURLVals.hasOwnProperty("subfolder") && parsedURLVals.hasOwnProperty("type") && parsedURLVals.hasOwnProperty("format")) {
|
||||
if (parsedURLVals.type !== "output") {
|
||||
@ -509,7 +514,7 @@ export class ShareDialog extends ComfyDialog {
|
||||
const supported_nodes_string = SUPPORTED_OUTPUT_NODE_TYPES.join(", ");
|
||||
alert(`No supported output node found (${supported_nodes_string}). To share this workflow, please add an output node to your graph and re-run your prompt.`);
|
||||
} else {
|
||||
alert("To share this, first run a prompt. Once it's done, click 'Share'.");
|
||||
alert("To share this, first run a prompt. Once it's done, click 'Share'.\n\nNOTE: Images of the Share target can only be selected in the PreviewImage, SaveImage, and VHS_VideoCombine nodes. In the case of VHS_VideoCombine, only the image/gif and image/webp formats are supported.");
|
||||
}
|
||||
this.selectedOutputIndex = 0;
|
||||
this.close();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user