mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-08 00:57:14 +00:00
supply file_name for tika parser
This commit is contained in:
1 parent
de32addf76
commit
40ef375c15
6 files changed
+10
-11
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user