소스 검색

增加等待时间

zhangyong 11 달 전
부모
커밋
df90010257
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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'] == '视频号':