remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-09-25 06:38:43 +02:00
parent 78f0721bb0
commit 5d30c3a632
1 changed files with 6 additions and 1 deletions

View File

@ -461,6 +461,7 @@ if SITE == 'pcmemes.net':
y = offline_details_regex.search(text) y = offline_details_regex.search(text)
if y: if y:
views = y.group(3)
quantity = int(y.group(1)) quantity = int(y.group(1))
unit = y.group(2) unit = y.group(2)
@ -470,6 +471,9 @@ if SITE == 'pcmemes.net':
if unit == 'uur': if unit == 'uur':
unit = 'hour' unit = 'hour'
modifier = 60 modifier = 60
if unit.startswith('dag'):
unit = 'day'
modifier = 1440
if unit.startswith('we'): if unit.startswith('we'):
unit = 'week' unit = 'week'
modifier = 10080 modifier = 10080
@ -489,9 +493,10 @@ if SITE == 'pcmemes.net':
else: else:
minutes = 0 minutes = 0
actual = '???' actual = '???'
views = 0
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, views))
except: except:
print(id, flush=True) print(id, flush=True)
return_val = None return_val = None