mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 23:35:22 +01:00
supply file_name for tika parser
This commit is contained in:
parent
de32addf76
commit
40ef375c15
6 changed files with 10 additions and 11 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue