From a548b54ebbb7d7f1363c484c7e55edb991119f08 Mon Sep 17 00:00:00 2001 From: Nemo2011 Date: Tue, 13 Aug 2024 19:21:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=96=E6=B6=88buvid3=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E4=BC=A0=E5=85=A5=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bilibili_api/live.py | 1 - bilibili_api/watchroom.py | 1 - 2 files changed, 2 deletions(-) diff --git a/bilibili_api/live.py b/bilibili_api/live.py index 89bc714b..fd0a2379 100644 --- a/bilibili_api/live.py +++ b/bilibili_api/live.py @@ -1110,7 +1110,6 @@ async def __handle_data(self, data) -> None: self.logger.warning("检测到未知的数据包类型,无法处理") async def __send_verify_data(self, ws: ClientWebSocketResponse, token: str) -> None: - self.credential.raise_for_no_buvid3() # 没传入 dedeuserid 可以试图 live.get_self_info if not self.credential.has_dedeuserid(): try: diff --git a/bilibili_api/watchroom.py b/bilibili_api/watchroom.py index 94bda109..d788b55b 100644 --- a/bilibili_api/watchroom.py +++ b/bilibili_api/watchroom.py @@ -119,7 +119,6 @@ def __init__(self, room_id: int, credential: Credential = None): self.credential = credential self.credential.raise_for_no_sessdata() self.credential.raise_for_no_bili_jct() - self.credential.raise_for_no_buvid3() if room_id in watch_room_bangumi_cache.keys(): self.set_season_id(watch_room_bangumi_cache[room_id][0]) self.set_episode_id(watch_room_bangumi_cache[room_id][1])