Skip to content

Commit

Permalink
Using proxy for vtt file
Browse files Browse the repository at this point in the history
  • Loading branch information
glenrobson committed May 17, 2024
1 parent cd36dfe commit 12ace1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iiify/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,15 +541,15 @@ def create_manifest3(identifier, domain=None, page=None):
motivation="supplementing",
target=c.id,
anno_page_id=vttAPId,
body={"id": f"https://archive.org/download/{identifier}/{vttFile['name']}",
body={"id": f"{domain}resource/{identifier}/{vttFile['name']}",
"type": "Text",
"format": "text/vtt",
})
# add label and language
if vttFile['name'].endswith("autogenerated.vtt"):
vtAnno.body.label = { 'en': ['autogenerated']}
else:
# Assume langauge
# Assume language
splitName = vttFile['name'].split(".")
lang = splitName[-2]
vtAnno.body.add_label(lang, language="none")
Expand Down

0 comments on commit 12ace1b

Please sign in to comment.