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

This commit is contained in:
crpa33 2025-04-02 11:57:28 +08:00 committed by GitHub
parent 413d91a520
commit a39b571d27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -165,8 +165,8 @@ class BilibiliCrawler(AbstractCrawler):
try: try:
task_list = [self.get_video_info_task(aid=video_item.get("aid"), bvid="", semaphore=semaphore) for video_item in video_list] 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 : except Exception as e :
utils.logger.error( utils.logger.warning(
f"[BilibiliCrawler.search] {comments_res}" 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) video_items = await asyncio.gather(*task_list)
for video_item in video_items: for video_item in video_items: