From 0b4068b9e9ceba64c7b84ca4d65ae0c9e3f6a8e9 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Tue, 12 Jan 2021 09:36:51 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8D=E8=BE=93=E5=85=A5=E4=BA=86?= =?UTF-8?q?=E6=8D=A2=E8=A1=8C=E5=AF=BC=E8=87=B4requests=E8=A3=82=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common.py b/Common.py index 36610f9..20856b4 100644 --- a/Common.py +++ b/Common.py @@ -305,7 +305,7 @@ def loginBilibili(force=False): if os.path.exists('cookie'): try: with open('cookie', 'r', encoding='utf8') as f: - _cookie = f.read(4096) + _cookie = f.readline().strip() b = Bilibili(_cookie) loginTime = datetime.now() appendOperation("Cookie 登录")