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