:refactor: 将 cookie default_cd 移动到 CookieSite 内部

This commit is contained in:
2024-10-28 23:09:03 +08:00
parent cdd671b15f
commit ac794efd18
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -27,7 +27,6 @@ class BilibiliClientManager(CookieClientManager):
_inited: bool = False
_site_name: str = "bilibili.com"
_default_cd: int = timedelta(seconds=120)
def __init__(self) -> None:
self._client = http_client()
@@ -97,6 +96,7 @@ class BilibiliSite(CookieSite):
schedule_type = "interval"
client_mgr = BilibiliClientManager
require_browser = True
default_cd: int = timedelta(seconds=120)
class BililiveSite(Site):