supply file_name for tika parser

This commit is contained in:
jonaswinkler committed 2021-01-01 22:19:43 +01:00
1 parent de32addf76
commit 40ef375c15
6 files changed
+10 -11

No files matched your search

+1 -2
View File
@@ -1,6 +1,5 @@
import datetime
import hashlib
import logging
import os
import magic
@@ -130,7 +129,7 @@ class Consumer(LoggingMixin):
try:
self.log("debug", "Parsing {}...".format(self.filename))
document_parser.parse(self.path, mime_type)
document_parser.parse(self.path, mime_type, self.filename)
self.log("debug", f"Generating thumbnail for {self.filename}...")
thumbnail = document_parser.get_optimised_thumbnail(