Attachment format

merge-requests/30/head
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: 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