Explorar el Código

syllable count add to origin

ming hace 4 años
padre
commit
69a8a82401
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)