forked from MarseyWorld/MarseyWorld
fix /live
parent
6b0c734254
commit
5b1e873e54
|
@ -454,16 +454,14 @@ if SITE == 'pcmemes.net':
|
||||||
if '"videoDetails":{"videoId"' in text:
|
if '"videoDetails":{"videoId"' in text:
|
||||||
y = live_regex.search(text)
|
y = live_regex.search(text)
|
||||||
count = y.group(3)
|
count = y.group(3)
|
||||||
|
|
||||||
|
if count == '1 παρακολουθεί τώρα':
|
||||||
|
count = 1
|
||||||
|
|
||||||
if 'περιμένει' in count:
|
if 'περιμένει' in count:
|
||||||
return process_streamer(id, '')
|
return process_streamer(id, '')
|
||||||
|
|
||||||
try: count = int(count.replace('.', ''))
|
count = int(count.replace('.', ''))
|
||||||
except Exception as e:
|
|
||||||
print('count error', flush=True)
|
|
||||||
print(e, flush=True)
|
|
||||||
with open('files/assets/count.txt', 'w', encoding='utf-8') as f:
|
|
||||||
f.write(text)
|
|
||||||
return None
|
|
||||||
|
|
||||||
t = live_thumb_regex.search(text)
|
t = live_thumb_regex.search(text)
|
||||||
|
|
||||||
|
@ -509,14 +507,8 @@ if SITE == 'pcmemes.net':
|
||||||
actual = '???'
|
actual = '???'
|
||||||
views = 0
|
views = 0
|
||||||
|
|
||||||
print(req.url, flush=True)
|
|
||||||
try: thumb = t.group(2)
|
try: thumb = t.group(2)
|
||||||
except Exception as e:
|
except: return None
|
||||||
print('thumb error', flush=True)
|
|
||||||
print(e, flush=True)
|
|
||||||
with open('files/assets/thumb.txt', 'w', encoding='utf-8') as f:
|
|
||||||
f.write(text)
|
|
||||||
return None
|
|
||||||
|
|
||||||
name = t.group(1)
|
name = t.group(1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue