zhangyong 1 year ago
parent
commit
e1eca0ba09
2 changed files with 2 additions and 2 deletions
  1. 1 1
      common/aliyun_oss_uploading.py
  2. 1 1
      video_stitching/video_stitching.py

+ 1 - 1
common/aliyun_oss_uploading.py

@@ -68,7 +68,7 @@ class Oss():
         bucket = oss2.Bucket(auth, OSS_BUCKET_ENDPOINT, OSS_BUCKET_NAME)
         if video_type == "口播--美文类":
             bucket.get_object_to_file(videos[0], f'./video_stitching/video_material/koubo.mp4')
-            return ""
+            return videos[0]
         else:
             list = []
             for i in videos:

+ 1 - 1
video_stitching/video_stitching.py

@@ -384,7 +384,7 @@ class VideoStitching():
                 time.sleep(10)
                 # 发送成功 已使用视频存入数据库
                 if video_type == "口播--美文类":
-                    cls.insert_video_typeAudio(videos[0], audio_id)
+                    cls.insert_video_typeAudio(videos, audio_id)
                 else:
                     cls.insert_videoAudio(audio_url, audio_id, channel_type)
                 Common.logger("video").info(f"发送成功 已使用视频存入数据库完成")