add ogg and flash video file extensions
authorGuillaume Cottenceau <gcottenc@gmail.com>
Fri, 12 Jun 2009 13:24:13 +0000 (15:24 +0200)
committerGuillaume Cottenceau <gcottenc@gmail.com>
Fri, 12 Jun 2009 13:24:13 +0000 (15:24 +0200)
lib/booh/booh-lib.rb

index 9c4a41d..8c246aa 100644 (file)
@@ -199,7 +199,7 @@ module Booh
         #- /usr/lib/gdk-pixbuf/loaders/libpixbufloader-xpm.so
         if entry =~ /\.(bmp|gif|ico|jpg|jpe|png|pnm|tif|xbm|xpm)$/i && entry !~ /['"\[\]]/
             return 'image'
-        elsif !$ignore_videos && entry =~ /\.(mov|avi|mpg|mpeg|mpe|wmv|asx|3gp|mp4)$/i && entry !~ /['"\[\]]/
+        elsif !$ignore_videos && entry =~ /\.(mov|avi|mpg|mpeg|mpe|wmv|asx|3gp|mp4|ogm|ogv|flv|f4v|f4p)$/i && entry !~ /['"\[\]]/
             #- might consider using file magic later..
             return 'video'
         else