mirror of
https://git.sr.ht/~metalune/simpleweb_peertube
synced 2024-12-22 14:54:00 +01:00
Stop printing captions into log
This commit is contained in:
parent
90a7a03b34
commit
a01b5547ee
1
main.py
1
main.py
@ -416,7 +416,6 @@ async def video_channels__about(domain, name):
|
|||||||
async def subtitles(domain, id, lang):
|
async def subtitles(domain, id, lang):
|
||||||
try:
|
try:
|
||||||
captions = peertube.video_captions(domain, id)
|
captions = peertube.video_captions(domain, id)
|
||||||
print(captions)
|
|
||||||
for entry in captions["data"]:
|
for entry in captions["data"]:
|
||||||
if entry["language"]["id"] == lang: return peertube.video_captions_download(domain, entry["captionPath"].split('/')[-1])
|
if entry["language"]["id"] == lang: return peertube.video_captions_download(domain, entry["captionPath"].split('/')[-1])
|
||||||
return await render_template(
|
return await render_template(
|
||||||
|
Loading…
Reference in New Issue
Block a user