ming 3 anni fa
parent
commit
572c929b7c
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      main.py

+ 3 - 3
main.py

@@ -598,14 +598,14 @@ def anchor_video_v2(name,text_content, image_urls):
     w.SetVideoOptions(True, "libx264", openshot.Fraction(30000, 1000), 1280, 720,
         openshot.Fraction(1, 1), False, False, 3000000)
     w.Open()
-    #progress = 100
-    #ws.send(str(progress))
+    progress = 100
+    ws.send(str(progress))
     #may change duration into t.info.duration
     for n in range(int(t.info.fps)*int(head_duration+main_timer+ED_duration)):
         f=t.GetFrame(n)
         w.WriteFrame(f)
-    notify_group(name+"的影片已經產生完成囉! www.choozmo.com:8168/"+name_hash+".mp4")
     
+    notify_group(name+"的影片已經產生完成囉! www.choozmo.com:8168/"+name_hash+".mp4")
     t.Close()
     w.Close()