Skip to content

Commit d99e47d

Browse files
lint code (#829)
1 parent dda50ba commit d99e47d

File tree

1 file changed

+3
-3
lines changed
  • projects/singularity_cinema/compose_video

1 file changed

+3
-3
lines changed

projects/singularity_cinema/compose_video/agent.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,8 @@ def illustration_pos(t):
324324
fg_clip = fg_clip.with_duration(duration)
325325
current_video_clips.append(fg_clip)
326326
if self.config.use_subtitle:
327-
if duration is not None and i < len(subtitle_paths) and subtitle_paths[i]:
327+
if duration is not None and i < len(
328+
subtitle_paths) and subtitle_paths[i]:
328329
segment_subs = subtitle_paths[i]
329330
num_subs = len(segment_subs)
330331
sub_duration = duration / num_subs
@@ -351,8 +352,7 @@ def illustration_pos(t):
351352
current_video_clips.append(subtitle_clip)
352353
except Exception as e:
353354
logger.error(
354-
f'Failed to load subtitle {sub_path}: {e}'
355-
)
355+
f'Failed to load subtitle {sub_path}: {e}')
356356

357357
# Add background as top layer (transparent PNG with decorative elements)
358358
if background_path and os.path.exists(background_path):

0 commit comments

Comments
 (0)