Add BornHack 2022 talks
This commit is contained in:
@@ -80,6 +80,12 @@ def generate_video_section_html(section_html, media):
|
||||
thumbnail=thumbnail, link=link)
|
||||
return html_out
|
||||
|
||||
def iframe_video(file_src):
|
||||
return '''\
|
||||
<iframe width="759" height="427" src="{url}" frameborder="0" allowfullscreen>
|
||||
</iframe>
|
||||
'''.format(url=file_src)
|
||||
|
||||
def extern_video(file_src):
|
||||
url = 'https://media-metanohi-name.eu-central-1.linodeobjects.com/media/' + file_src
|
||||
return '''\
|
||||
@@ -113,6 +119,7 @@ def generate_video_page(base_dir, out_dir, base_html, showing_html, media):
|
||||
file_type, file_src = media['file'].split(':', 1)
|
||||
actions = {
|
||||
'extern': extern_video,
|
||||
'iframe': iframe_video
|
||||
'youtube': youtube_video
|
||||
}
|
||||
video_html = actions[file_type](file_src)
|
||||
|
||||
Reference in New Issue
Block a user