|
@@ -397,7 +397,8 @@ class KuaiShou:
|
|
|
Feishu.insert_columns(log_type, "kuaishou", "3cd128", "ROWS", 1, 2)
|
|
|
# 视频ID工作表,首行写入数据
|
|
|
upload_time = int(time.time())
|
|
|
- values = [[str(time.strftime("%Y/%m/%d %H:%M:%S", time.localtime(upload_time))),
|
|
|
+ values = [[our_video_id,
|
|
|
+ time.strftime("%Y/%m/%d %H:%M:%S", time.localtime(upload_time)),
|
|
|
"推荐榜",
|
|
|
str(download_video_id),
|
|
|
str(download_video_title),
|
|
@@ -415,7 +416,7 @@ class KuaiShou:
|
|
|
str(download_cover_url),
|
|
|
str(download_video_url)]]
|
|
|
time.sleep(1)
|
|
|
- Feishu.update_values(log_type, "kuaishou", "3cd128", "F2:V2", values)
|
|
|
+ Feishu.update_values(log_type, "kuaishou", "3cd128", "E2:Z2", values)
|
|
|
|
|
|
# 删除行或列,可选 ROWS、COLUMNS
|
|
|
time.sleep(1)
|
|
@@ -425,8 +426,7 @@ class KuaiShou:
|
|
|
else:
|
|
|
# 删除行或列,可选 ROWS、COLUMNS
|
|
|
Feishu.dimension_range(log_type, "kuaishou", "JK6npf", "ROWS", i + 1, i + 1)
|
|
|
- # 从云文档删除该视频信息:https://w42nne6hzg.feishu.cn/sheets/shtcngRPoDYAi24x52j2nDuHMih?sheet=JK6npf
|
|
|
- Common.logger(log_type).info("该视频不满足下载规则,删除在云文档中的信息:{}\n", download_video_title)
|
|
|
+ Common.logger(log_type).info("该视频不满足下载规则,删除成功:{}\n", download_video_title)
|
|
|
return
|
|
|
except Exception as e:
|
|
|
# Feishu.bot(log_type, "recommend:download_publish异常" + format(e))
|