update
This commit is contained in:
parent
04018cdaf4
commit
6d4266e0de
3
main.py
3
main.py
@ -132,7 +132,7 @@ def flush_files():
|
||||
|
||||
|
||||
def init_session():
|
||||
global session
|
||||
global session, cookies
|
||||
session = aiohttp.ClientSession()
|
||||
session.cookie_jar.update_cookies(cookies)
|
||||
|
||||
@ -169,6 +169,7 @@ log_files = {}
|
||||
with open("cookie.txt", "r", encoding="utf-8") as f:
|
||||
cookies = http.cookies.SimpleCookie()
|
||||
cookies.load(f.read().strip())
|
||||
cookies["SESSDATA"]["domain"] = "bilibili.com"
|
||||
|
||||
session: Optional[aiohttp.ClientSession] = None
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user