From f71d0864645e9bf1dd43cffcf6cf82bddf7d01f7 Mon Sep 17 00:00:00 2001 From: Relakkes Date: Tue, 5 Dec 2023 23:32:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20B=E7=AB=99get=5Fwbi=5Fkeys=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E7=B1=BB=E5=9E=8B=E6=A0=87=E6=B3=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- media_platform/bilibili/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/media_platform/bilibili/client.py b/media_platform/bilibili/client.py index 14755d1..b4d8e71 100644 --- a/media_platform/bilibili/client.py +++ b/media_platform/bilibili/client.py @@ -4,7 +4,7 @@ # @Desc : bilibili 请求客户端 import asyncio import json -from typing import Any, Callable, Dict, Optional, List +from typing import Any, Callable, Dict, Optional, List, Tuple from urllib.parse import urlencode import httpx @@ -59,7 +59,7 @@ class BilibiliClient: img_key, sub_key = await self.get_wbi_keys() return BilibiliSign(img_key, sub_key).sign(req_data) - async def get_wbi_keys(self) -> tuple[str, str]: + async def get_wbi_keys(self) -> Tuple[str, str]: """ 获取最新的 img_key 和 sub_key :return: