From 1b9a4e528b531f1e2a679f324527cae76fa00e61 Mon Sep 17 00:00:00 2001 From: ArabCoders Date: Thu, 19 Dec 2024 23:26:26 +0300 Subject: [PATCH] reverted change to regex for player segments --- app/library/HttpAPI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/library/HttpAPI.py b/app/library/HttpAPI.py index 28e06061..3a38f20f 100644 --- a/app/library/HttpAPI.py +++ b/app/library/HttpAPI.py @@ -448,7 +448,7 @@ class HttpAPI(common): 'Access-Control-Max-Age': "300", }) - @route('GET', 'player/segments/{segment:d+}/{file:.*}.ts') + @route('GET', r'player/segments/{segment:\d+}/{file:.*}.ts') async def segments(self, request: Request) -> Response: file: str = request.match_info.get('file') segment: int = request.match_info.get('segment')