forked from MarseyWorld/MarseyWorld
fix bug in /live
parent
7212fa44ef
commit
7e7c14fe22
|
@ -481,16 +481,19 @@ if SITE == 'pcmemes.net':
|
||||||
quantity = int(y.group(1))
|
quantity = int(y.group(1))
|
||||||
unit = y.group(2)
|
unit = y.group(2)
|
||||||
|
|
||||||
if unit.startswith('λεπτ'):
|
if unit.startswith('δε'):
|
||||||
|
unit = 'second'
|
||||||
|
modifier = 1/60
|
||||||
|
elif unit.startswith('λεπτ'):
|
||||||
unit = 'minute'
|
unit = 'minute'
|
||||||
modifier = 1
|
modifier = 1
|
||||||
if unit.startswith('ώρ'):
|
elif unit.startswith('ώρ'):
|
||||||
unit = 'hour'
|
unit = 'hour'
|
||||||
modifier = 60
|
modifier = 60
|
||||||
if unit.startswith('ημέρ'):
|
elif unit.startswith('ημέρ'):
|
||||||
unit = 'day'
|
unit = 'day'
|
||||||
modifier = 1440
|
modifier = 1440
|
||||||
if unit.startswith('εβδομάδ'):
|
elif unit.startswith('εβδομάδ'):
|
||||||
unit = 'week'
|
unit = 'week'
|
||||||
modifier = 10080
|
modifier = 10080
|
||||||
elif unit.startswith('μήν'):
|
elif unit.startswith('μήν'):
|
||||||
|
@ -500,10 +503,7 @@ if SITE == 'pcmemes.net':
|
||||||
unit = 'year'
|
unit = 'year'
|
||||||
modifier = 525600
|
modifier = 525600
|
||||||
|
|
||||||
try: minutes = quantity * modifier
|
minutes = quantity * modifier
|
||||||
except:
|
|
||||||
print(unit, flush=True)
|
|
||||||
return None
|
|
||||||
|
|
||||||
actual = f'{quantity} {unit}'
|
actual = f'{quantity} {unit}'
|
||||||
if quantity > 1: actual += 's'
|
if quantity > 1: actual += 's'
|
||||||
|
|
Loading…
Reference in New Issue