ming пре 3 година
родитељ
комит
53bebbfb34
2 измењених фајлова са 1 додато и 1 уклоњено
  1. BIN
      .DS_Store
  2. 1 1
      OpenshotService/openshot_video_generator.py

+ 1 - 1
OpenshotService/openshot_video_generator.py

@@ -244,7 +244,7 @@ def parse_script(file_path,gt_list):
     for idx in range(int((len(lines)+1)/4)):
     for idx in range(int((len(lines)+1)/4)):
         script={}
         script={}
         script['index'] = idx
         script['index'] = idx
-        time_raw = lines[idx * 4]
+        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(':')
         stop = time_raw.split(' --> ')[1].split(':')
         stop = time_raw.split(' --> ')[1].split(':')