zhangyong 1 năm trước cách đây
mục cha
commit
3e72f20334
1 tập tin đã thay đổi với 0 bổ sung3 xóa
  1. 0 3
      video_agc/agc_video_method.py

+ 0 - 3
video_agc/agc_video_method.py

@@ -410,9 +410,6 @@ class AgcVidoe():
                 Common.logger("video").info(f"{mark}的{platform}渠道获取需要拼接的音频成功")
                 Common.logger("video").info(f"{mark}的{platform}渠道获取需要拼接的音频成功")
                 # 获取音频秒数
                 # 获取音频秒数
                 audio_duration = cls.get_audio_duration(audio_video)
                 audio_duration = cls.get_audio_duration(audio_video)
-                if audio_duration == None:
-                    Common.logger("video").info(f"{mark}的{platform}渠道音频{audio_video}秒数为0")
-                    return ""
                 Common.logger("video").info(f"{mark}的{platform}渠道获取需要拼接的音频秒数为:{audio_duration}")
                 Common.logger("video").info(f"{mark}的{platform}渠道获取需要拼接的音频秒数为:{audio_duration}")
                 video_files = cls.concatenate_videos(videos, audio_duration, audio_video, platform, s_path, v_path, mark, v_oss_path)
                 video_files = cls.concatenate_videos(videos, audio_duration, audio_video, platform, s_path, v_path, mark, v_oss_path)
                 if video_files == "":
                 if video_files == "":