mirror of https://github.com/CIRCL/PyCIRCLean
Add application/audio mimetypes to Config
parent
d80fb6d33a
commit
e0cad3a7f0
|
@ -16,6 +16,7 @@ class Config:
|
|||
mimes_compressed = ('zip', 'rar', 'x-rar', 'bzip2', 'lzip', 'lzma', 'lzop',
|
||||
'xz', 'compress', 'gzip', 'tar',)
|
||||
mimes_data = ('octet-stream',)
|
||||
mimes_audio = ('ogg',)
|
||||
|
||||
# Image subtypes
|
||||
mimes_exif = ('image/jpeg', 'image/tiff',)
|
||||
|
|
|
@ -46,6 +46,7 @@ class File(FileBase):
|
|||
(Config.mimes_ms, self._executables),
|
||||
(Config.mimes_compressed, self._archive),
|
||||
(Config.mimes_data, self._binary_app),
|
||||
(Config.mimes_audio, self.audio)
|
||||
)
|
||||
self.app_subtype_methods = self._make_method_dict(subtypes_apps)
|
||||
|
||||
|
|
Loading…
Reference in New Issue