From: Bernie Innocenti Date: Thu, 23 Sep 2010 19:02:35 +0000 (+0200) Subject: Add .webm video extension support X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=b2d45e5e3f780e9a21aeaf8cf8babaaf5f57a74d;p=geekigeeki.git Add .webm video extension support --- diff --git a/geekigeeki.py b/geekigeeki.py index 7880060..e15db21 100755 --- 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" # Not supported by Firefox 3.5: mkv|mpg|mpeg|mp4|avi|asf|flv|wmv|qt +video_ext = "ogg|ogv|oga|webm" # Not supported by Firefox 3.6: mkv|mpg|mpeg|mp4|avi|asf|flv|wmv|qt 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