File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
projects/singularity_cinema/compose_video Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ):
You can’t perform that action at this time.
0 commit comments