ming 4 anni fa
parent
commit
218e18297d
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      OpenshotService/util/parser.py

+ 2 - 2
OpenshotService/util/parser.py

@@ -43,8 +43,8 @@ class parser:
         added_idx = []
         for dic in dict_in:
             if 'image_obj' in dic :
-                if dic['idx'] not in added_idx:
-                    added_idx.append(dic['idx'])
+                if dic['image_obj']['idx'] not in added_idx:
+                    added_idx.append(dic['image_obj']['idx'])
                     time_info.append({'index':img_idx,'start':dic['start']})
                     img_idx += 1
             stopPoint = dic['start']+dic['duration']