PCM live: stop infinite recursion on invalid input.

master
Snakes 2022-10-07 22:32:33 -04:00
parent b515b8bd15
commit f7a52ddb8c
Signed by: Snakes
GPG Key ID: E745A82778055C7E
1 changed files with 9 additions and 2 deletions

View File

@ -467,7 +467,10 @@ if SITE == 'pcmemes.net':
count = "1" count = "1"
if 'περιμένει' in count: if 'περιμένει' in count:
if live != '':
return process_streamer(id, '') return process_streamer(id, '')
else:
return None
count = int(count.replace('.', '')) count = int(count.replace('.', ''))
@ -480,7 +483,11 @@ 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, '') if not t:
if live != '':
return process_streamer(id, '')
else:
return None
y = offline_details_regex.search(text) y = offline_details_regex.search(text)