Explorar o código

增加等待时间

zhangyong hai 11 meses
pai
achega
df90010257
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      video_rewriting/video_processor.py

+ 1 - 0
video_rewriting/video_processor.py

@@ -667,6 +667,7 @@ class VideoProcessor:
                 count = get_first_value_with_prefix(mark_count)
                 increment_key(mark_count)
                 if int(count) >= 300:
+                    time.sleep(10)
                     Common.logger(mark).log(f"视频号搜索接口今日已经上限")
                     return "视频号搜索上限"
             if mark == 'sph-plzh'and task['channel_id'] == '视频号':