From ea6b5ea1737c2c5e440df1228b2dca06419e2b45 Mon Sep 17 00:00:00 2001 From: metalune Date: Thu, 21 Jan 2021 12:20:39 +0100 Subject: [PATCH] Use /videos/watch instead of /watch so it uses the same links as peertube --- main.py | 3 +-- templates/search_results.html | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 20d1c57..4177cd7 100644 --- a/main.py +++ b/main.py @@ -116,7 +116,7 @@ async def search(domain, term): ) -@app.route("//watch//") +@app.route("//videos/watch//") async def video(domain, id): data = peertube.video(domain, id) quality = request.args.get("quality") @@ -142,6 +142,5 @@ async def video(domain, id): embed=embed, ) - if __name__ == "__main__": app.run() diff --git a/templates/search_results.html b/templates/search_results.html index 2072a12..e98b3bb 100644 --- a/templates/search_results.html +++ b/templates/search_results.html @@ -9,7 +9,7 @@ {% for result in results %} - +