fix(loop.py): Remove OUTPUT_IS_LIST to enable automatic unwrap in ComfyUI

The `OUTPUT_IS_LIST = (True, True, True, True, True)` assignment in `AutoLoopCalculatorTTSBatch` was preventing ComfyUI from automatically unwrapping 1-item lists, causing downstream nodes to crash with TypeErrors (expecting raw strings/integers but getting lists). By removing this attribute while keeping `INPUT_IS_LIST = True`, ComfyUI can now safely process inputs as batches while unwrapping and forwarding primitive values to the next nodes.
This commit is contained in:
Meisoftcoltd
2026-05-23 13:13:27 +00:00
parent 59f0be86ba
commit 35075fa357
+2 -1
View File
@@ -118,8 +118,9 @@ class AutoLoopCalculatorTTSBatch:
}
}
# 💡 FIX: Mantenemos INPUT_IS_LIST para absorber el batch, pero ELIMINAMOS OUTPUT_IS_LIST
# para que ComfyUI desempaquete las salidas automáticamente.
INPUT_IS_LIST = True
OUTPUT_IS_LIST = (True, True, True, True, True)
RETURN_TYPES = ("STRING", "INT", "INT", "STRING", "STRING")
RETURN_NAMES = ("current_text", "current_index", "total_chunks", "current_file_name", "log")