From 8f5934d576e1aad93db9c4daaa13f8d4ed63bf3c Mon Sep 17 00:00:00 2001 From: Leonardo Mortari Date: Mon, 4 Aug 2025 13:17:42 -0300 Subject: [PATCH] Add param --- components/video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/video.py b/components/video.py index 70d9c09..5e02c8d 100644 --- a/components/video.py +++ b/components/video.py @@ -19,7 +19,7 @@ def auto_wrap_text(text, max_width): line = "" for word in words: test_line = f"{line} {word}".strip() - test_clip = TextClip(test_line, font=font, font_size=font_size, color='white', method='label') + test_clip = TextClip(text=test_line, font=font, font_size=font_size, color='white', method='label') if test_clip.w > max_width and line != "": lines.append(line)