Use /videos/watch instead of /watch so it uses the same links as peertube

This commit is contained in:
metalune 2021-01-21 12:20:39 +01:00
parent acf718c676
commit ea6b5ea173
2 changed files with 2 additions and 3 deletions

View file

@ -116,7 +116,7 @@ async def search(domain, term):
)
@app.route("/<string:domain>/watch/<string:id>/")
@app.route("/<string:domain>/videos/watch/<string:id>/")
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()

View file

@ -9,7 +9,7 @@
{% for result in results %}
<tr>
<td>
<a href="/{{ domain }}/watch/{{ result.uuid }}">
<a href="/{{ domain }}/videos/watch/{{ result.uuid }}">
<img src="https://{{ domain }}/{{ result.thumbnailPath }}" height="150"/>
</a>
</td>