mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-20 13:36:45 +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
|
|
@ -32,6 +32,6 @@ class TextDocumentParser(DocumentParser):
|
|||
|
||||
return out_path
|
||||
|
||||
def parse(self, document_path, mime_type):
|
||||
def parse(self, document_path, mime_type, file_name=None):
|
||||
with open(document_path, 'r') as f:
|
||||
self.text = f.read()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue