From 0f3965dc13a39659349f449437d6d841c0c191e1 Mon Sep 17 00:00:00 2001 From: 2024 Date: Mon, 31 Mar 2025 21:29:29 +0800 Subject: [PATCH] 1 --- jd_taskop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: