Attachment format

main
Bob Mottram 2023-10-29 20:53:26 +00:00
parent cb7b6953a2
commit e93eb058f0
1 changed files with 3 additions and 4 deletions

View File

@ -229,11 +229,10 @@ def convert_video_to_note(base_dir: str, nickname: str, domain: str,
for understood in languages_understood:
if understood in lang['identifier']:
new_post['object']['attachment'].append({
"type": "PropertyValue",
"name": "Subtitles",
"type": "Document",
"name": understood,
"mediaType": "text/vtt",
"url": lang['url'],
"hreflang": understood
"url": lang['url']
})
break