diff --git a/jd_taskop.py b/jd_taskop.py index 631cc47..cf4b40e 100644 --- a/jd_taskop.py +++ b/jd_taskop.py @@ -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: