更新
This commit is contained in:
@@ -73,9 +73,14 @@ def _requests_proxies() -> dict | None:
|
||||
|
||||
|
||||
def _build_auth(session: DouyinImSession) -> tuple[DouyinAuth, str]:
|
||||
auth = DouyinAuth()
|
||||
auth.perepare_auth(session.cookie_header(), session.web_protect_str, session.keys_str)
|
||||
ua = resolve_user_agent(session.user_agent or DEFAULT_USER_AGENT)
|
||||
auth = DouyinAuth()
|
||||
auth.perepare_auth(
|
||||
session.cookie_header(),
|
||||
session.web_protect_str,
|
||||
session.keys_str,
|
||||
user_agent=ua,
|
||||
)
|
||||
return auth, ua
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user