zhangyong пре 1 година
родитељ
комит
adbfd130a5
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      video_stitching/video_stitching.py

+ 2 - 0
video_stitching/video_stitching.py

@@ -338,6 +338,8 @@ class VideoStitching():
             url_list = cls.get_url_list(audio_id, account)
             videos = [list(item) for item in url_list]
         # 获取音频url
+        if audio_id == None:
+            return
         audio = cls.get_audio_url(audio_id, cookie)
         if audio == "":
             Common.logger().info(f"获取音频地址为空")