Skip to content
Snippets Groups Projects
Commit 8d1e898a authored by Vermaat's avatar Vermaat
Browse files

Merge pull request #40 from mutalyzer/xlsx

Fix XLSX parsing with newer libmagic
parents 105646b0 1f04bdf2
No related branches found
No related tags found
No related merge requests found
......@@ -448,12 +448,14 @@ class File() :
"""
mimeType = self.getMimeType(handle)
if mimeType[0] == "text/plain":
return self.__parseCsvFile(handle)
if mimeType[0] in ('application/vnd.ms-excel',
'application/vnd.ms-office',
'application/msword',
'application/zip'):
if (mimeType[0] in ('application/vnd.ms-excel',
'application/vnd.ms-office',
'application/msword',
'application/zip') or
mimeType[1] == 'Microsoft OOXML'):
return self.__parseXlsFile(handle)
if (mimeType[0] == 'application/vnd.oasis.opendocument.spreadsheet' or
mimeType[1] in ('OpenDocument Spreadsheet',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment