From 7b7092b5f5c590abbed1b56c305c569a5f04cb53 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 29 Sep 2022 20:29:44 +0200 Subject: [PATCH] better syntax in /live --- files/routes/static.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/files/routes/static.py b/files/routes/static.py index 89b2ee908..d2b85f9ea 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -472,6 +472,8 @@ 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, '') + y = offline_details_regex.search(text) if y: @@ -507,8 +509,7 @@ if SITE == 'pcmemes.net': actual = '???' views = 0 - try: thumb = t.group(2) - except: return None + thumb = t.group(2) name = t.group(1)