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