remove "/live" from url for offline streamesr

master
Aevann1 2022-09-22 20:26:06 +02:00
parent 0df33c86a4
commit 5c7ff17512
1 changed files with 2 additions and 2 deletions

View File

@ -481,10 +481,10 @@ if SITE_NAME == 'PCM':
count = int(y.group(3))
live.append((req.url, t.group(1), y.group(2), y.group(1), count))
except:
offline.append((req.url, t.group(1), y.group(2)))
offline.append((req.url.rstrip('/live'), t.group(1), y.group(2)))
else:
y = offline_regex.search(txt)
try: offline.append((req.url, y.group(2), y.group(1)))
try: offline.append((req.url.rstrip('/live'), y.group(2), y.group(1)))
except: print(x)
live = sorted(live, key=lambda x: x[4], reverse=True)