From 88fcd4071dc0d23d2d6de49e37f40947488f0df2 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 31 Mar 2018 21:22:16 +0200 Subject: [PATCH] Support even more libreoffice files --- src/libreoffice.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libreoffice.py b/src/libreoffice.py index b7e0dfb..a3481a1 100644 --- a/src/libreoffice.py +++ b/src/libreoffice.py @@ -11,6 +11,10 @@ from . import abstract, parser_factory class LibreOfficeParser(abstract.AbstractParser): mimetypes = { 'application/vnd.oasis.opendocument.text', + 'application/vnd.oasis.opendocument.spreadsheet', + 'application/vnd.oasis.opendocument.presentation', + 'application/vnd.oasis.opendocument.graphics', + 'application/vnd.oasis.opendocument.chart' } def get_meta(self): @@ -39,7 +43,7 @@ class LibreOfficeParser(abstract.AbstractParser): if item.filename[-1] == '/': continue # `is_dir` is added in Python3.6 elif item.filename == 'meta.xml': - continue # don't keep metadata files + continue # don't keep metadata files zin.extract(member=item, path=temp_folder) tmp_parser = parser_factory.get_parser(os.path.join(temp_folder, item.filename))