浏览代码

修改规则:抓取视频时长大于 40s

wangkun 3 年之前
父节点
当前提交
08b7fb077e
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      main/download_play.py
  2. 1 1
      main/download_sendtime.py
  3. 1 1
      main/download_up.py

+ 1 - 1
main/download_play.py

@@ -26,7 +26,7 @@ class DownloadPlay:
         3.视频播放量 >= 150000
         """
         if int(play_width) >= 720 or int(play_height) >= 720 or play_width == "0" or play_height == "0":
-            if 600 >= int(play_duration) >= 60:
+            if int(play_duration) >= 40:
                 if int(play_play_cnt) >= 150000:
                     return True
                 else:

+ 1 - 1
main/download_sendtime.py

@@ -34,7 +34,7 @@ class DownloadSendtime:
         """
         if int(send_time_width) >= 720 or int(send_time_height) >= 720 \
                 or send_time_width == "0" or send_time_height == "0":
-            if 600 >= int(send_time_duration) >= 60:
+            if int(send_time_duration) >= 40:
                 if int(send_time_share_cnt) > 0:
                     return True
                 else:

+ 1 - 1
main/download_up.py

@@ -35,7 +35,7 @@ class DownloadUp:
         3.视频播放量 >= 0
         """
         if int(up_width) >= 720 or int(up_height) >= 720 or str(up_width) == "0" or str(up_height) == "0":
-            if 600 >= int(up_duration) >= 60:
+            if int(up_duration) >= 40:
                 if int(up_play_cnt) >= 0:
                     return True
                 else: