zhangyong hace 1 año
padre
commit
88dc6989aa
Se han modificado 1 ficheros con 3 adiciones y 4 borrados
  1. 3 4
      video_stitching/video_stitching.py

+ 3 - 4
video_stitching/video_stitching.py

@@ -18,7 +18,8 @@ from common.aliyun_oss_uploading import Oss
 from common.common import Common
 from common.db import MysqlHelper
 from common.material import Material
-from moviepy.editor import VideoFileClip, concatenate_videoclips
+from moviepy.editor import concatenate_videoclips
+from moviepy.video.io.VideoFileClip import VideoFileClip
 from moviepy import editor
 
 
@@ -260,9 +261,7 @@ class VideoStitching():
                 Common.logger().info(
                     f"未登录,请更换cookie,{data}")
                 Feishu.bot('recommend', '管理后台', '管理后台cookie失效,请及时更换~')
-                # 如果返回空信息,则随机睡眠 600, 1200 秒
-                time.sleep(random.randint(600, 1200))
-                cls.video_stitching()
+                return ""
             audio_url = data["content"]["transedVideoPath"]
             print(audio_url)
             return audio_url