Ver Fonte

新增公众新号-调试

zhangyong há 1 ano atrás
pai
commit
78f017aac9

+ 3 - 0
gongzhongxinhao/gongzhongxinhao/gongzhongxinhao_author.py

@@ -271,6 +271,8 @@ class GZXHAuthor:
         if not pipeline.repeat_video():
         if not pipeline.repeat_video():
             return True
             return True
         else:
         else:
+            current_time = datetime.now()
+            timestamp = current_time.strftime("%Y-%m-%d %H:%M:%S")
             values = [[
             values = [[
                 user_name,
                 user_name,
                 video_id,
                 video_id,
@@ -279,6 +281,7 @@ class GZXHAuthor:
                     .replace('"', "")
                     .replace('"', "")
                     .replace("'", ""),
                     .replace("'", ""),
                 publish_time_str,
                 publish_time_str,
+                timestamp,
                 video_url,
                 video_url,
                 article.get("head_pic", ""),
                 article.get("head_pic", ""),
                 self.user_dict['link']
                 self.user_dict['link']