mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-05-02 17:07:13 +00:00
[FIX] Update metadata tags in PDF collector script (#925)
update title in pdf collector script to be the filename instead of metadata title
This commit is contained in:
parent
568e78d3ef
commit
45f50ce13c
1 changed files with 2 additions and 2 deletions
|
@ -40,9 +40,9 @@ async function asPDF({ fullFilePath = "", filename = "" }) {
|
|||
const data = {
|
||||
id: v4(),
|
||||
url: "file://" + fullFilePath,
|
||||
title: docs[0]?.metadata?.pdf?.info?.Title || filename,
|
||||
title: filename,
|
||||
docAuthor: docs[0]?.metadata?.pdf?.info?.Creator || "no author found",
|
||||
description: "No description found.",
|
||||
description: docs[0]?.metadata?.pdf?.info?.Title || "No description found.",
|
||||
docSource: "pdf file uploaded by the user.",
|
||||
chunkSource: "",
|
||||
published: createdDate(fullFilePath),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue