|
@@ -442,7 +442,7 @@ def generate_subtitle_image(name_hash,text_content):
|
|
|
img_list[idx]=[]
|
|
|
senList = split_by_pun(text_content[idx])
|
|
|
for inner_idx in range(len(senList)):
|
|
|
- sv_path = dir_subtitle + name_hash +'/'+str(idx)+ str(step) +'.png'
|
|
|
+ sv_path = dir_subtitle + name_hash +'/'+str(idx)+ str(inner_idx) +'.png'
|
|
|
sub = senList[inner_idx]
|
|
|
txt2image(sub,sv_path)
|
|
|
img_list[idx]+=[{"count":len(sub),"path":sv_path}]
|