Stop printing captions into log
This commit is contained in:
parent
90a7a03b34
commit
a01b5547ee
1 changed files with 0 additions and 1 deletions
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 a new issue