|
@@ -410,8 +410,8 @@ def video_gen(name_hash,name,text_content, image_urls,multiLang,avatar):
|
|
|
raw_clip = video_photo_clip(vid=raw,layer=2,position=0, end=raw.info.duration)
|
|
|
t.AddClip(raw_clip)
|
|
|
|
|
|
- sub_img_list[idx] = [None] * len(sub_dict)
|
|
|
- sub_clip_list[idx] = [None] * len(sub_dict)
|
|
|
+ sub_img_list = [None] * len(sub_dict)
|
|
|
+ sub_clip_list = [None] * len(sub_dict)
|
|
|
for sub_obj in sub_dict:
|
|
|
sub_img_list[sub_obj['index']] = openshot.QtImageReader(dir_subtitle + name_hash + '/' + str(sub_obj['index'])+'.png')
|
|
|
sub_img_list[sub_obj['index']].Open()
|