|
@@ -640,6 +640,13 @@ class AgcVidoe():
|
|
|
else:
|
|
|
srt_new = SRT.getSrt(int(uid))
|
|
|
if srt_new:
|
|
|
+ current_time = datetime.now()
|
|
|
+ formatted_time = current_time.strftime("%Y-%m-%d %H:%M:%S")
|
|
|
+ values = [[mark, uid, srt_new , formatted_time]]
|
|
|
+ Feishu.insert_columns("IbVVsKCpbhxhSJtwYOUc8S1jnWb", "jd9qD9", "ROWS", 1, 2)
|
|
|
+ random_wait_time = random.uniform(0.5, 2.5)
|
|
|
+ time.sleep(random_wait_time)
|
|
|
+ Feishu.update_values("IbVVsKCpbhxhSJtwYOUc8S1jnWb", "jd9qD9", "A2:Z2", values)
|
|
|
# 创建临时字幕文件
|
|
|
cls.create_subtitle_file(srt_new, s_path)
|
|
|
Common.logger("gs_video").info(f"S{mark}的{platform}渠道RT 文件目录创建成功")
|
|
@@ -763,6 +770,13 @@ class AgcVidoe():
|
|
|
else:
|
|
|
srt_new = SRT.getSrt(int(uid))
|
|
|
if srt_new:
|
|
|
+ current_time = datetime.now()
|
|
|
+ formatted_time = current_time.strftime("%Y-%m-%d %H:%M:%S")
|
|
|
+ values = [[mark, uid, srt_new, formatted_time]]
|
|
|
+ Feishu.insert_columns("IbVVsKCpbhxhSJtwYOUc8S1jnWb", "jd9qD9", "ROWS", 1, 2)
|
|
|
+ random_wait_time = random.uniform(0.5, 2.5)
|
|
|
+ time.sleep(random_wait_time)
|
|
|
+ Feishu.update_values("IbVVsKCpbhxhSJtwYOUc8S1jnWb", "jd9qD9", "A2:Z2", values)
|
|
|
# 创建临时字幕文件
|
|
|
cls.create_subtitle_file(srt_new, s_path)
|
|
|
Common.logger("gs_video").info(f"S{mark}的{platform}渠道RT 文件目录创建成功")
|
|
@@ -855,6 +869,13 @@ class AgcVidoe():
|
|
|
else:
|
|
|
srt_new = SRT.getSrt(int(uid))
|
|
|
if srt_new:
|
|
|
+ current_time = datetime.now()
|
|
|
+ formatted_time = current_time.strftime("%Y-%m-%d %H:%M:%S")
|
|
|
+ values = [[mark, uid, srt_new, formatted_time]]
|
|
|
+ Feishu.insert_columns("IbVVsKCpbhxhSJtwYOUc8S1jnWb", "jd9qD9", "ROWS", 1, 2)
|
|
|
+ random_wait_time = random.uniform(0.5, 2.5)
|
|
|
+ time.sleep(random_wait_time)
|
|
|
+ Feishu.update_values("IbVVsKCpbhxhSJtwYOUc8S1jnWb", "jd9qD9", "A2:Z2", values)
|
|
|
# 创建临时字幕文件
|
|
|
cls.create_subtitle_file(srt_new, s_path)
|
|
|
Common.logger("gs_video").info(f"S{mark}的{platform}渠道RT 文件目录创建成功")
|