mirror of
https://codeberg.org/SimpleWeb/SimpleerTube.git
synced 2024-11-24 17:41: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):
|
async def video(domain, id):
|
||||||
data = peertube.video(domain, id)
|
data = peertube.video(domain, id)
|
||||||
quality = request.args.get("quality")
|
quality = request.args.get("quality")
|
||||||
|
@ -142,6 +142,5 @@ async def video(domain, id):
|
||||||
embed=embed,
|
embed=embed,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
app.run()
|
app.run()
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
{% for result in results %}
|
{% for result in results %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<a href="/{{ domain }}/watch/{{ result.uuid }}">
|
<a href="/{{ domain }}/videos/watch/{{ result.uuid }}">
|
||||||
<img src="https://{{ domain }}/{{ result.thumbnailPath }}" height="150"/>
|
<img src="https://{{ domain }}/{{ result.thumbnailPath }}" height="150"/>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in a new issue