瀏覽代碼

syllable count add to origin

ming 4 年之前
父節點
當前提交
69a8a82401
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      OpenshotService/openshot_video_generator.py

+ 1 - 1
OpenshotService/openshot_video_generator.py

@@ -536,7 +536,7 @@ def generate_subtitle_image(name_hash,text_content):
             zh_idx = []
             eng_idx= []
             for i in range(len(clean_content)):
-                if clean_content[i] > u'\u4e00' and in_str[i] < u'\u9fff':
+                if clean_content[i] > u'\u4e00' and clean_content[i] < u'\u9fff':
                     zh_idx.append(i)
                 else:
                     eng_idx.append(i)