mp4 etc...

This commit is contained in:
gauthiier 2017-07-03 19:16:51 +02:00
parent 56bea0a7ff
commit 1bc98b020f
3 changed files with 12 additions and 1 deletions

View File

@ -68,6 +68,14 @@ table td img {
display: block;
}
.lst ul li desc video {
border: 10px grey ridge;
margin: 0em;
margin-bottom: 2em;
width: 985;
display: block;
}
.lst ul li img {
border: 10px grey ridge;
margin: 2em;

3
.gitignore vendored
View File

@ -2,4 +2,5 @@
+++/*.jpeg
+++/*.pdf
+++/Screen-Shot-2014-05-26-at-20.40.24-b.png
+++/bb15.png
+++/bb15.png
+++/533201N0032129W_from_the_Sea_poster.png

2
gen.py
View File

@ -87,6 +87,7 @@ content_map = {
'.jpg': emit_img,
'.m4v': emit_video_mp4,
'.mov': emit_video_mp4,
'.mp4': emit_video_mp4,
'.audio': emit_audio,
'.html': default,
'.txt': default
@ -143,6 +144,7 @@ def index_content(dir_name, data_dir, index_txt, desc_txt, template):
for j in files:
x, ext = os.path.splitext(j);
ext = ext.lower()
if ext in content_map:
element = content_map[ext](j, data_dir);
if element: