remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-09-25 06:37:16 +02:00
parent 695fca5d35
commit 78f0721bb0
1 changed files with 27 additions and 23 deletions

View File

@ -460,6 +460,7 @@ if SITE == 'pcmemes.net':
t = offline_regex.search(text)
y = offline_details_regex.search(text)
if y:
quantity = int(y.group(1))
unit = y.group(2)
@ -485,6 +486,9 @@ if SITE == 'pcmemes.net':
actual = f'{quantity} {unit}'
if quantity > 1: actual += 's'
else:
minutes = 0
actual = '???'
try:
return_val = (False, (id, req.url.rstrip('/live'), t.group(2), t.group(1), minutes, actual, y.group(3)))