From 9b99ac6e131182cc71f191a5b5ba0fc36255fb29 Mon Sep 17 00:00:00 2001 From: hyugogirubato <65763543+hyugogirubato@users.noreply.github.com> Date: Fri, 11 Oct 2024 20:26:48 +0200 Subject: [PATCH] Fix cached key regex --- src/server.py | 2 +- src/template.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server.py b/src/server.py index e6a070d..fe5079c 100644 --- a/src/server.py +++ b/src/server.py @@ -204,7 +204,7 @@ def catch_all(path: str) -> Response: boundary_data = parse_boundary(body.decode('utf-8')) # Force response for Disney - if int(boundary_data.get('TB', 0)) == 31 and boundary_data.get('PS'): + if boundary_data.get('TB') == '31' and boundary_data.get('PS'): content = json.dumps({'R': 5, 'u': None}, separators=(',', ':')).encode('utf-8') return Response(status=200, response=content, headers={'Content-Type': 'text/html; charset=UTF-8'}) diff --git a/src/template.json b/src/template.json index 7d28957..88d0650 100644 --- a/src/template.json +++ b/src/template.json @@ -1678,7 +1678,7 @@ }, { "type": "regex-path", - "regexSource": "https?:\\/\\/.+\\/ak\\/uc_v[0-9]\\/", + "regexSource": "https?:\\/\\/.+\\/ak\\/[a-z]+_v[0-9]\\/", "regexFlags": "" } ],