mirror of https://gitlab.com/bashrc2/epicyon
Attachment format
parent
cb7b6953a2
commit
e93eb058f0
7
video.py
7
video.py
|
@ -229,11 +229,10 @@ def convert_video_to_note(base_dir: str, nickname: str, domain: str,
|
||||||
for understood in languages_understood:
|
for understood in languages_understood:
|
||||||
if understood in lang['identifier']:
|
if understood in lang['identifier']:
|
||||||
new_post['object']['attachment'].append({
|
new_post['object']['attachment'].append({
|
||||||
"type": "PropertyValue",
|
"type": "Document",
|
||||||
"name": "Subtitles",
|
"name": understood,
|
||||||
"mediaType": "text/vtt",
|
"mediaType": "text/vtt",
|
||||||
"url": lang['url'],
|
"url": lang['url']
|
||||||
"hreflang": understood
|
|
||||||
})
|
})
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue