避免输入了换行导致requests裂开
This commit is contained in:
parent
302b4d4596
commit
0b4068b9e9
@ -305,7 +305,7 @@ def loginBilibili(force=False):
|
|||||||
if os.path.exists('cookie'):
|
if os.path.exists('cookie'):
|
||||||
try:
|
try:
|
||||||
with open('cookie', 'r', encoding='utf8') as f:
|
with open('cookie', 'r', encoding='utf8') as f:
|
||||||
_cookie = f.read(4096)
|
_cookie = f.readline().strip()
|
||||||
b = Bilibili(_cookie)
|
b = Bilibili(_cookie)
|
||||||
loginTime = datetime.now()
|
loginTime = datetime.now()
|
||||||
appendOperation("Cookie 登录")
|
appendOperation("Cookie 登录")
|
||||||
|
Reference in New Issue
Block a user