Files
Meisoftcoltd-comfyui-sequen…/fix_newlines.py
T
Meisoftcoltd 5983ff65b4 feat: rename video analyzer to face detector, add global cache, and introduce scene detector node
- Renamed `VideoAnalyzerWithAudio` to `VideoAnalyzerFaceDetector`.
- Introduced `VIDEO_ANALYSIS_CACHE` and `current_loop_index` for cycle caching.
- Created `VideoAnalyzerSceneDetector` to detect scene changes via pixel difference.
- Added dynamic reference frame preview functionality outside the caching logic.
- Registered nodes with proper display names in `__init__.py`.
2026-04-24 21:29:55 +00:00

13 lines
351 B
Python

def fix():
with open('video.py', 'r') as f:
content = f.read()
content = content.replace('_log(f"{'+'=\'*50}\n")', '_log(f"{'+'=\'*50}\\n")')
content = content.replace('", "\n".join(log_output))}', '", "\\n".join(log_output))}')
with open('video.py', 'w') as f:
f.write(content)
if __name__ == '__main__':
fix()