Browse Source

gen video queue

ming 3 years ago
parent
commit
1eae59500d
1 changed files with 3 additions and 1 deletions
  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: