From 5c7ff17512e9605d593af1686b6d6d95fa60459c Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 22 Sep 2022 20:26:06 +0200 Subject: [PATCH] remove "/live" from url for offline streamesr --- files/routes/static.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/static.py b/files/routes/static.py index 54dfb0c03b..260ab55db2 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)