Add application/audio mimetypes to Config

pull/21/head
Dan Puttick 2017-08-22 17:25:41 -04:00
parent d80fb6d33a
commit e0cad3a7f0
2 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,7 @@ class Config:
mimes_compressed = ('zip', 'rar', 'x-rar', 'bzip2', 'lzip', 'lzma', 'lzop', mimes_compressed = ('zip', 'rar', 'x-rar', 'bzip2', 'lzip', 'lzma', 'lzop',
'xz', 'compress', 'gzip', 'tar',) 'xz', 'compress', 'gzip', 'tar',)
mimes_data = ('octet-stream',) mimes_data = ('octet-stream',)
mimes_audio = ('ogg',)
# Image subtypes # Image subtypes
mimes_exif = ('image/jpeg', 'image/tiff',) mimes_exif = ('image/jpeg', 'image/tiff',)

View File

@ -46,6 +46,7 @@ class File(FileBase):
(Config.mimes_ms, self._executables), (Config.mimes_ms, self._executables),
(Config.mimes_compressed, self._archive), (Config.mimes_compressed, self._archive),
(Config.mimes_data, self._binary_app), (Config.mimes_data, self._binary_app),
(Config.mimes_audio, self.audio)
) )
self.app_subtype_methods = self._make_method_dict(subtypes_apps) self.app_subtype_methods = self._make_method_dict(subtypes_apps)