forked from rDrama/rDrama
fix
parent
351a7ca17b
commit
97b2e09b65
|
@ -460,7 +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)
|
||||||
|
|
||||||
quantity = y.group(1)
|
quantity = int(y.group(1))
|
||||||
unit = y.group(2)
|
unit = y.group(2)
|
||||||
|
|
||||||
if unit == 'minuten':
|
if unit == 'minuten':
|
||||||
|
@ -479,12 +479,10 @@ if SITE == 'pcmemes.net':
|
||||||
unit = 'year'
|
unit = 'year'
|
||||||
modifier = 525600
|
modifier = 525600
|
||||||
|
|
||||||
print(unit, flush=True)
|
|
||||||
|
|
||||||
minutes = quantity * modifier
|
minutes = quantity * modifier
|
||||||
|
|
||||||
if quantity > 1: unit += 's'
|
actual = f'{quantity} {unit}'
|
||||||
actual = quantity + ' ' + unit
|
if quantity > 1: actual += 's'
|
||||||
|
|
||||||
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)))
|
||||||
|
@ -514,6 +512,8 @@ if SITE == 'pcmemes.net':
|
||||||
|
|
||||||
return live, offline
|
return live, offline
|
||||||
|
|
||||||
|
live_cached()
|
||||||
|
|
||||||
@app.get('/live')
|
@app.get('/live')
|
||||||
@app.get('/logged_out/live')
|
@app.get('/logged_out/live')
|
||||||
@auth_desired_with_logingate
|
@auth_desired_with_logingate
|
||||||
|
|
Loading…
Reference in New Issue