fixup! feat: add temp client for bilibili

fix bug
This commit is contained in:
felinae98
2022-10-04 15:34:51 +08:00
parent 0a4fd60e7a
commit 88e3d4de12
3 changed files with 6 additions and 3 deletions
@@ -21,8 +21,11 @@ class _BilibiliClient:
async def _init_session(self):
self._http_client = httpx.AsyncClient(**http_args)
res = await self._http_client.get("https://bilibili.com")
res = await self._http_client.get("https://www.bilibili.com/")
if res.status_code != 200:
import ipdb
ipdb.set_trace()
logger.warning("unable to refresh temp cookie")
else:
self._client_refresh_time = datetime.now()