From f7a52ddb8c3faf226bec9708520bab608b85cacc Mon Sep 17 00:00:00 2001 From: TLSM Date: Fri, 7 Oct 2022 22:32:33 -0400 Subject: [PATCH] PCM live: stop infinite recursion on invalid input. --- files/routes/static.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/files/routes/static.py b/files/routes/static.py index ccfec09b7..4b54bed28 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -467,7 +467,10 @@ if SITE == 'pcmemes.net': count = "1" if 'περιμένει' in count: - return process_streamer(id, '') + if live != '': + return process_streamer(id, '') + else: + return None count = int(count.replace('.', '')) @@ -480,7 +483,11 @@ if SITE == 'pcmemes.net': return (True, (id, req.url, thumb, name, title, count)) else: t = offline_regex.search(text) - if not t: return process_streamer(id, '') + if not t: + if live != '': + return process_streamer(id, '') + else: + return None y = offline_details_regex.search(text)