From a73b73c2944b3df2a62886c4e6b69c93f5e74222 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 16 Nov 2020 17:50:06 -0800 Subject: html ingest: actual xhtml mimetype --- python/fatcat_tools/importers/ingest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/python/fatcat_tools/importers/ingest.py b/python/fatcat_tools/importers/ingest.py index 4dcb1ec3..4fbd19f1 100644 --- a/python/fatcat_tools/importers/ingest.py +++ b/python/fatcat_tools/importers/ingest.py @@ -392,7 +392,7 @@ class IngestWebResultImporter(IngestFileResultImporter): if row['request'].get('ingest_type') != 'html': self.counts['skip-ingest-type'] += 1 return False - if row['file_meta'].get('mimetype') not in ("text/html", "application/html"): + if row['file_meta'].get('mimetype') not in ("text/html", "application/xhtml+xml"): self.counts['skip-mimetype'] += 1 return False @@ -407,7 +407,7 @@ class IngestWebResultImporter(IngestFileResultImporter): if request.get('ingest_type') != "html": self.counts['skip-ingest-type'] += 1 return None - if file_meta['mimetype'] not in ("text/html", "application/html"): + if file_meta['mimetype'] not in ("text/html", "application/xhtml+xml"): self.counts['skip-mimetype'] += 1 return None -- cgit v1.2.3