Jelajahi Sumber

eng prototype

ming 3 tahun lalu
induk
melakukan
7e74842599
1 mengubah file dengan 1 tambahan dan 2 penghapusan
  1. 1 2
      OpenshotService/openshot_video_generator.py

+ 1 - 2
OpenshotService/openshot_video_generator.py

@@ -238,11 +238,10 @@ def generate_subtitle_image(name_hash,text_content):
 def generate_subtitle_image_ENG(name_hash,text_content):
     img_list = [None]*len(text_content)
     for idx in range(len(text_content)):
-        img_list[idx]=[]
         sv_path = dir_subtitle + name_hash +'/'+str(idx)+'.png'
         sub = text_content[idx]
         txt2image(sub, sv_path)
-        img_list[idx] = sub
+        img_list[idx] = sv_path
     return img_list
 
 def anchor_video_v2(name_hash,name,text_content, image_urls,avatar):