输出到日志-处理视频搜索页任务列表构造的错误

This commit is contained in:
crpa33
2025-04-02 11:57:28 +08:00
committed by GitHub
parent 413d91a520
commit a39b571d27

View File

@@ -165,8 +165,8 @@ class BilibiliCrawler(AbstractCrawler):
try:
task_list = [self.get_video_info_task(aid=video_item.get("aid"), bvid="", semaphore=semaphore) for video_item in video_list]
except Exception as e :
utils.logger.error(
f"[BilibiliCrawler.search] {comments_res}"
utils.logger.warning(
f"[BilibiliCrawler.search] error in the task list. The video for this page will not be included. {e}"
)
video_items = await asyncio.gather(*task_list)
for video_item in video_items: