mirror of https://gitlab.com/bashrc2/epicyon
srclang on video transcripts
parent
e93eb058f0
commit
83ab01729e
|
@ -1539,9 +1539,10 @@ def get_post_attachments_as_html(base_dir: str,
|
||||||
for transcript_name, transcript_url in \
|
for transcript_name, transcript_url in \
|
||||||
transcripts.items():
|
transcripts.items():
|
||||||
gallery_str += \
|
gallery_str += \
|
||||||
'<track src=”' + transcript_url + \
|
'<track src=”' + transcript_url + '" ' + \
|
||||||
'” label=”' + transcript_name + \
|
'label=”' + transcript_name + '" ' + \
|
||||||
'” kind=”captions” >\n'
|
'srclang=”' + transcript_name + '" ' + \
|
||||||
|
'kind=”captions” >\n'
|
||||||
idx = 'Your browser does not support the video tag.'
|
idx = 'Your browser does not support the video tag.'
|
||||||
gallery_str += translate[idx] + '\n'
|
gallery_str += translate[idx] + '\n'
|
||||||
gallery_str += ' </video>\n'
|
gallery_str += ' </video>\n'
|
||||||
|
@ -1585,9 +1586,10 @@ def get_post_attachments_as_html(base_dir: str,
|
||||||
for transcript_name, transcript_url in \
|
for transcript_name, transcript_url in \
|
||||||
transcripts.items():
|
transcripts.items():
|
||||||
attachment_str += \
|
attachment_str += \
|
||||||
' <track src=”' + transcript_url + \
|
' <track src=”' + transcript_url + '" ' + \
|
||||||
'” label=”' + transcript_name + \
|
'label=”' + transcript_name + '" ' + \
|
||||||
'” kind=”captions” >\n'
|
'srclang=”' + transcript_name + '" ' + \
|
||||||
|
'kind=”captions” >\n'
|
||||||
attachment_str += \
|
attachment_str += \
|
||||||
translate['Your browser does not support the video tag.']
|
translate['Your browser does not support the video tag.']
|
||||||
attachment_str += '\n </video></figure></center>'
|
attachment_str += '\n </video></figure></center>'
|
||||||
|
|
Loading…
Reference in New Issue