mirror of
https://git.sr.ht/~cadence/NewLeaf
synced 2026-03-05 12:01:38 +00:00
Support auto-generated captions
The caption extraction is now entirely in our own hands.
This commit is contained in:
parent
aaf7d65b32
commit
1d52fca3a0
3 changed files with 35 additions and 26 deletions
|
|
@ -217,7 +217,7 @@ def get_subtitle_api_url(id, label, language_code):
|
|||
subtitle_api_url = "/api/v1/captions/{}?".format(id)
|
||||
params = {}
|
||||
|
||||
if label:
|
||||
if label and "auto-generated" in label:
|
||||
params["label"] = label
|
||||
else:
|
||||
params["lang"] = language_code
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue