projects
/
geekigeeki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad7f4eb
)
Add some common video extensions.
author
Bernie Innocenti
<bernie@codewiz.org>
Wed, 23 Aug 2017 15:05:31 +0000
(11:05 -0400)
committer
Bernie Innocenti
<bernie@codewiz.org>
Wed, 23 Aug 2017 15:05:31 +0000
(11:05 -0400)
geekigeeki.py
patch
|
blob
|
history
diff --git
a/geekigeeki.py
b/geekigeeki.py
index 7f54b4cbd7fb2ae3d80329d93cba07f1afbbd5b6..6262c4a6e7393694590234624da7f5167a2fd57f 100755
(executable)
--- a/
geekigeeki.py
+++ b/
geekigeeki.py
@@
-21,7
+21,7
@@
title_done = False
import cgi, sys, os, re, errno, stat, glob
image_ext = 'png|gif|jpg|jpeg|bmp|ico'
-video_ext =
"ogg|ogv|oga|webm" # Not supported by Firefox 3.6: mkv|mpg|mpeg|mp4|avi|asf|flv|wmv|qt
+video_ext =
'avi|webm|mkv|ogv'
image_re = re.compile(r".*\.(" + image_ext + "|" + video_ext + ")$", re.IGNORECASE)
video_re = re.compile(r".*\.(" + video_ext + ")$", re.IGNORECASE)
# FIXME: we accept stuff like foo/../bar and we shouldn't