Browse Source

update download_up

wangkun 3 năm trước cách đây
mục cha
commit
f8952294bc
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      main/download_up.py

+ 2 - 2
main/download_up.py

@@ -117,7 +117,7 @@ class DownloadUp:
                             and v_video_cover != "" and download_url_up != "":
                         if int(time.time()) - int(v_time) < 3600:
                             Common.crawler_log().info("距上次获取该视频时间:{}分钟".format(
-                                int(int(int(time.time()) - int(v_time)) / 60)) + ";{}".format(v_title))
+                                int((int(int(time.time()) - int(v_time))) / 60)) + ";{}".format(v_title))
                         elif 7200 >= int(time.time()) - int(v_time) >= 3600:
                             if int(v_play_cnt_up) - int(v_play_ctn) >= 1000:
                                 Common.crawler_log().info("该视频:{}".format(
@@ -173,7 +173,7 @@ class DownloadUp:
                                             continue
                                         f_w.write(line2)
                                 with open("./txt/kanyikan_feeds.txt", "a", encoding="utf-8") as f_a:
-                                    f_a.write(str(time.time()) + " + "
+                                    f_a.write(str(int(time.time())) + " + "
                                               + str(v_id) + " + "
                                               + str(v_play_cnt_up) + " + "
                                               + str(v_title) + " + "