mirror of
https://codeberg.org/SimpleWeb/SimpleerTube.git
synced 2024-11-28 11:31:30 +00:00
Use /videos/watch instead of /watch so it uses the same links as peertube
This commit is contained in:
parent
acf718c676
commit
ea6b5ea173
3
main.py
3
main.py
|
@ -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()
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue