Kaydet (Commit) 5c6e934b authored tarafından Michael Stahl's avatar Michael Stahl

get-bugzilla-attachments-by-mimetype: IANA has 2 mime-types for WPD

... on https://www.iana.org/assignments/media-types/application

Also fix up the common_noncore_mimetypes while there.

Change-Id: I66eb74b0906a10893a771b7136b5f6ebda938ee6
üst f35b3fea
...@@ -275,6 +275,7 @@ mimetypes = { ...@@ -275,6 +275,7 @@ mimetypes = {
'application/vnd.lotus-wordpro': 'lwp', 'application/vnd.lotus-wordpro': 'lwp',
'application/vnd.lotus-1-2-3': 'wks', 'application/vnd.lotus-1-2-3': 'wks',
'application/vnd.wordperfect': 'wpd', 'application/vnd.wordperfect': 'wpd',
'application/wordperfect5.1': 'wpd',
'application/vnd.ms-works': 'wps', 'application/vnd.ms-works': 'wps',
'application/x-hwp': 'hwp', 'application/x-hwp': 'hwp',
'application/x-aportisdoc': 'pdb', 'application/x-aportisdoc': 'pdb',
...@@ -308,28 +309,28 @@ mimetypes = { ...@@ -308,28 +309,28 @@ mimetypes = {
} }
# disabled for now, this would download gigs of pngs/jpegs... # disabled for now, this would download gigs of pngs/jpegs...
common_noncore_mimetypes = [ common_noncore_mimetypes = {
# graphics # graphics
('image/svg+xml', 'svg'), 'image/svg+xml': 'svg',
('image/x-MS-bmp', 'bmp'), 'image/x-MS-bmp': 'bmp',
('image/x-wpg', 'wpg'), 'image/x-wpg': 'wpg',
('image/x-eps', 'eps'), 'image/x-eps': 'eps',
('image/x-met', 'met'), 'image/x-met': 'met',
('image/x-portable-bitmap', 'pbm'), 'image/x-portable-bitmap': 'pbm',
('image/x-photo-cd', 'pcd'), 'image/x-photo-cd': 'pcd',
('image/x-pcx', 'pcx'), 'image/x-pcx': 'pcx',
('image/x-portable-graymap', 'pgm'), 'image/x-portable-graymap': 'pgm',
('image/x-portable-pixmap', 'ppm'), 'image/x-portable-pixmap': 'ppm',
('image/vnd.adobe.photoshop', 'psd'), 'image/vnd.adobe.photoshop': 'psd',
('image/x-cmu-raster', 'ras'), 'image/x-cmu-raster': 'ras',
('image/x-xbitmap', 'xbm'), 'image/x-xbitmap': 'xbm',
('image/x-xpixmap', 'xpm'), 'image/x-xpixmap': 'xpm',
('image/gif', 'gif'), 'image/gif': 'gif',
('image/jpeg', 'jpeg'), 'image/jpeg': 'jpeg',
('image/png', 'png'), 'image/png': 'png',
# pdf, etc. # pdf, etc.
('application/pdf', 'pdf'), 'application/pdf': 'pdf',
] }
for (mimetype,extension) in mimetypes.items(): for (mimetype,extension) in mimetypes.items():
get_through_rss_query(freedesktop, mimetype, "fdo", extension) get_through_rss_query(freedesktop, mimetype, "fdo", extension)
......
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