1
0
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:
metalune 2021-07-30 19:27:53 +02:00
parent 90a7a03b34
commit a01b5547ee

View File

@ -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(