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": "" } ],