From 05c001187081bba4b57b6b73f0c04afe36ccc2e2 Mon Sep 17 00:00:00 2001 From: tastelikefeet Date: Sun, 18 Jan 2026 11:02:46 +0800 Subject: [PATCH] lint code --- projects/singularity_cinema/compose_video/agent.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/singularity_cinema/compose_video/agent.py b/projects/singularity_cinema/compose_video/agent.py index 637f93103..210f2cbb5 100644 --- a/projects/singularity_cinema/compose_video/agent.py +++ b/projects/singularity_cinema/compose_video/agent.py @@ -324,7 +324,8 @@ def illustration_pos(t): fg_clip = fg_clip.with_duration(duration) current_video_clips.append(fg_clip) if self.config.use_subtitle: - if duration is not None and i < len(subtitle_paths) and subtitle_paths[i]: + if duration is not None and i < len( + subtitle_paths) and subtitle_paths[i]: segment_subs = subtitle_paths[i] num_subs = len(segment_subs) sub_duration = duration / num_subs @@ -351,8 +352,7 @@ def illustration_pos(t): current_video_clips.append(subtitle_clip) except Exception as e: logger.error( - f'Failed to load subtitle {sub_path}: {e}' - ) + f'Failed to load subtitle {sub_path}: {e}') # Add background as top layer (transparent PNG with decorative elements) if background_path and os.path.exists(background_path):