|
@@ -55,10 +55,10 @@ class RequestApi(object):
|
|
|
file_name = os.path.basename(self.upload_file_path)
|
|
|
# 获取音频时长,不超过5h
|
|
|
duration = get_audio_duration(self.upload_file_path)
|
|
|
- audio_duration = duration / 1000 / 60
|
|
|
- if audio_duration > 60:
|
|
|
+ audio_duration = duration / 1000 / 60 / 60
|
|
|
+ if audio_duration > 5:
|
|
|
log_.error({'videoId': video_id, 'errorType': 'audioDurationError',
|
|
|
- 'errorMsg': f'audioSize: {audio_duration}h, required <= 60h'})
|
|
|
+ 'errorMsg': f'audioSize: {audio_duration}h, required <= 5h'})
|
|
|
return None
|
|
|
# 请求参数拼接
|
|
|
param_dict = {
|