浏览代码

fix sub image

ming 3 年之前
父节点
当前提交
225f33fd61
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      OpenshotService/openshot_video_generator.py

+ 1 - 1
OpenshotService/openshot_video_generator.py

@@ -242,7 +242,7 @@ def parse_script(file_path):
     
     
     for idx in range(int((len(lines)+1)/4)):
     for idx in range(int((len(lines)+1)/4)):
         script={}
         script={}
-        script['index'] = lines[idx * 4]
+        script['index'] = idx
         time_raw = lines[idx * 4 + 1]
         time_raw = lines[idx * 4 + 1]
         script['content'] = lines[idx * 4 + 2]
         script['content'] = lines[idx * 4 + 2]
         start = time_raw.split(' --> ')[0].split(':')
         start = time_raw.split(' --> ')[0].split(':')