fix
parent
695fca5d35
commit
78f0721bb0
|
@ -460,6 +460,7 @@ if SITE == 'pcmemes.net':
|
||||||
t = offline_regex.search(text)
|
t = offline_regex.search(text)
|
||||||
y = offline_details_regex.search(text)
|
y = offline_details_regex.search(text)
|
||||||
|
|
||||||
|
if y:
|
||||||
quantity = int(y.group(1))
|
quantity = int(y.group(1))
|
||||||
unit = y.group(2)
|
unit = y.group(2)
|
||||||
|
|
||||||
|
@ -485,6 +486,9 @@ if SITE == 'pcmemes.net':
|
||||||
|
|
||||||
actual = f'{quantity} {unit}'
|
actual = f'{quantity} {unit}'
|
||||||
if quantity > 1: actual += 's'
|
if quantity > 1: actual += 's'
|
||||||
|
else:
|
||||||
|
minutes = 0
|
||||||
|
actual = '???'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
return_val = (False, (id, req.url.rstrip('/live'), t.group(2), t.group(1), minutes, actual, y.group(3)))
|
return_val = (False, (id, req.url.rstrip('/live'), t.group(2), t.group(1), minutes, actual, y.group(3)))
|
||||||
|
|
Loading…
Reference in New Issue