better syntax in /live

master
Aevann1 2022-09-29 20:29:44 +02:00
parent b111852d44
commit 7b7092b5f5
1 changed files with 3 additions and 2 deletions

View File

@ -472,6 +472,8 @@ if SITE == 'pcmemes.net':
return (True, (id, req.url, thumb, name, title, count)) return (True, (id, req.url, thumb, name, title, count))
else: else:
t = offline_regex.search(text) t = offline_regex.search(text)
if not t: return process_streamer(id, '')
y = offline_details_regex.search(text) y = offline_details_regex.search(text)
if y: if y:
@ -507,8 +509,7 @@ if SITE == 'pcmemes.net':
actual = '???' actual = '???'
views = 0 views = 0
try: thumb = t.group(2) thumb = t.group(2)
except: return None
name = t.group(1) name = t.group(1)