fix a bug with thumbnail generation when TIKA was enabled

This commit is contained in:
jonaswinkler
2021-02-09 22:12:43 +01:00
parent c7b46f43b8
commit b04d91d68c
8 changed files with 25 additions and 19 deletions

View File

@@ -22,7 +22,10 @@ def _process_document(doc_in):
try:
thumb = parser.get_optimised_thumbnail(
document.source_path, document.mime_type)
document.source_path,
document.mime_type,
document.get_public_filename()
)
shutil.move(thumb, document.thumbnail_path)
finally: