diff --git a/files/routes/static.py b/files/routes/static.py index 54dfb0c03..260ab55db 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -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)