mirror of
https://github.com/6dylan6/jdpro.git
synced 2025-07-13 16:13:07 +08:00
1
This commit is contained in:
@ -180,7 +180,7 @@ def get_token() -> str or None:
|
|||||||
if 'keyv' in path:
|
if 'keyv' in path:
|
||||||
with open(path, "r", encoding="latin1") as file:
|
with open(path, "r", encoding="latin1") as file:
|
||||||
auth = file.read()
|
auth = file.read()
|
||||||
matches = re.search(r'token":"([^"]+)"', auth)
|
matches = re.search(r'"token":"([^"]*)"(?!.*"token":)', auth)
|
||||||
token = matches.group(1)
|
token = matches.group(1)
|
||||||
else:
|
else:
|
||||||
with open(path, "r") as file:
|
with open(path, "r") as file:
|
||||||
|
Reference in New Issue
Block a user