From bc20e82f27187161af25989725a1e4016758d232 Mon Sep 17 00:00:00 2001 From: Cp0204 Date: Sun, 28 Jul 2024 02:58:59 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E4=BF=AE=E5=A4=8D=E5=92=8C?= =?UTF-8?q?=E9=80=82=E9=85=8D=E7=AD=BE=E5=88=B0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- quark_auto_save.py | 48 ++++++++++++++++++++++++++++++++++------------ 1 file changed, 36 insertions(+), 12 deletions(-) diff --git a/quark_auto_save.py b/quark_auto_save.py index f00f58e..b7e46e3 100644 --- a/quark_auto_save.py +++ b/quark_auto_save.py @@ -103,12 +103,26 @@ class Quark: self.is_active = False self.nickname = "" self.st = self.match_st_form_cookie(cookie) + self.mparam = self.match_mparam_form_cookie(cookie) self.savepath_fid = {"/": "0"} def match_st_form_cookie(self, cookie): match = re.search(r"=(st[a-zA-Z0-9]+);", cookie) return match.group(1) if match else False + def match_mparam_form_cookie(self, cookie): + mparam = {} + kps_match = re.search(r"(?