Kaydet (Commit) 144f554d authored tarafından Caolán McNamara's avatar Caolán McNamara

download some unusual image mimetypes by default

üst 01ee9406
...@@ -207,10 +207,13 @@ mimetypes = [ ...@@ -207,10 +207,13 @@ mimetypes = [
('application/x-starwriter', 'sdw'), ('application/x-starwriter', 'sdw'),
('application/vnd.stardivision.writer', 'sdw5'), ('application/vnd.stardivision.writer', 'sdw5'),
('application/vnd.stardivision.writer-global', 'sgl5'), ('application/vnd.stardivision.writer-global', 'sgl5'),
# unusual image mimetypes
('image/cgm', 'cgm'),
('image/x-targa', 'tga'),
] ]
# disabled for now, this would download gigs of pngs/jpegs... # disabled for now, this would download gigs of pngs/jpegs...
image_mimetypes = [ common_image_mimetypes = [
# graphics # graphics
('image/svg+xml', 'svg'), ('image/svg+xml', 'svg'),
('image/x-MS-bmp', 'bmp'), ('image/x-MS-bmp', 'bmp'),
...@@ -229,7 +232,6 @@ image_mimetypes = [ ...@@ -229,7 +232,6 @@ image_mimetypes = [
('image/x-cmu-raster', 'ras'), ('image/x-cmu-raster', 'ras'),
('image/x-sgf', 'sgf'), ('image/x-sgf', 'sgf'),
('image/x-svm', 'svm'), ('image/x-svm', 'svm'),
('image/x-targa', 'tga'),
('image/tiff', 'tiff'), ('image/tiff', 'tiff'),
('image/x-wmf', 'wmf'), ('image/x-wmf', 'wmf'),
('image/x-xbitmap', 'xbm'), ('image/x-xbitmap', 'xbm'),
...@@ -237,7 +239,6 @@ image_mimetypes = [ ...@@ -237,7 +239,6 @@ image_mimetypes = [
('image/gif', 'gif'), ('image/gif', 'gif'),
('image/jpeg', 'jpeg'), ('image/jpeg', 'jpeg'),
('image/png', 'png'), ('image/png', 'png'),
('image/cgm', 'cgm'),
] ]
for (mimetype,extension) in mimetypes: for (mimetype,extension) in mimetypes:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment