瀏覽代碼

gen video queue

ming 3 年之前
父節點
當前提交
1eae59500d
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      api/main.py

+ 3 - 1
api/main.py

@@ -251,7 +251,9 @@ def gen_video_queue(name_hash,name,text_content, image_urls,avatar):
             remote_svc = c.root
             texts = top1['text_content'].split(',')
             print(texts)
-            my_answer = remote_svc.call_video(top1['name_hash'],top1['name'],texts, top1['image_urls'].split(','),top1['avatar']) # method call
+            urls = top1['image_urls'].split(',')
+            print(urls)
+            my_answer = remote_svc.call_video(top1['name_hash'],top1['name'],texts, urls,top1['avatar']) # method call
             shutil.copy(tmp_video_dir+top1['name_hash']+'.mp4',video_dest+top1['name_hash']+'.mp4')
             os.remove(tmp_video_dir+top1['name_hash']+'.mp4')
         if True: