Support 'image' in file_type_by_extension (bug 740)

file_type_by_extension formerly filtered out content
that was not a video nor an audio file.
This commit is contained in:
Thibauld Nion 2009-12-29 17:12:47 +01:00 committed by Thomas Perl
parent 689431fede
commit 64fcdd83ad
1 changed files with 1 additions and 1 deletions

View File

@ -653,7 +653,7 @@ def file_type_by_extension(extension):
if type is not None and '/' in type:
filetype, rest = type.split('/', 1)
if filetype in ('audio', 'video'):
if filetype in ('audio', 'video', 'image'):
return filetype
return None