wangkun %!s(int64=2) %!d(string=hai) anos
pai
achega
48c1488f76
Modificáronse 2 ficheiros con 7 adicións e 6 borrados
  1. 3 2
      main/follow_list.py
  2. 4 4
      main/recommend_list.py

+ 3 - 2
main/follow_list.py

@@ -632,7 +632,8 @@ class Follow:
                     Feishu.insert_columns(log_type, "kuaishou", "3cd128", "ROWS", 1, 2)
                     # 视频ID工作表,首行写入数据
                     upload_time = int(time.time())
-                    values = [[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),
@@ -650,7 +651,7 @@ class Follow:
                                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
                     Feishu.dimension_range(log_type, "kuaishou", "wW5cyb", "ROWS", i + 1, i + 1)

+ 4 - 4
main/recommend_list.py

@@ -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))