소스 검색

eng prototype

ming 3 년 전
부모
커밋
7e74842599
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  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):