From 424ba500d30e55e86bd0edd91a52ff65f54645a7 Mon Sep 17 00:00:00 2001 From: Julian Rother <julianr@fsmpi.rwth-aachen.de> Date: Sat, 28 Jul 2018 00:35:02 +0200 Subject: [PATCH] Fixed auth handler for hls fragments --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 4f6b2f6..783c2f1 100644 --- a/server.py +++ b/server.py @@ -399,7 +399,7 @@ def auth(): # For use with nginx auth_request return "OK", 200 if url.startswith('pub/hls/'): handle = url[len('pub/hls/'):].split('_')[0].split('.')[0] - if handle.startswith('l_'): + if handle.isdigit(): perms = query('''SELECT lectures.id AS lecture, perm.* FROM lectures JOIN courses ON (lectures.course_id = courses.id) -- GitLab