mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 10:28:27 +00:00
Add more properties to upload meta data
This commit is contained in:
@ -91,7 +91,9 @@ object ReProcessItem {
|
||||
"", //source-id
|
||||
None, //folder
|
||||
Seq.empty,
|
||||
false
|
||||
false,
|
||||
None,
|
||||
None
|
||||
),
|
||||
Nil
|
||||
).pure[F]
|
||||
|
@ -47,7 +47,9 @@ object TextExtraction {
|
||||
_ <- fts.indexData(ctx.logger, (idxItem +: txt.map(_.td)).toSeq: _*)
|
||||
dur <- start
|
||||
_ <- ctx.logger.info(s"Text extraction finished in ${dur.formatExact}")
|
||||
} yield item.copy(metas = txt.map(_.am), tags = txt.flatMap(_.tags).distinct.toList)
|
||||
} yield item
|
||||
.copy(metas = txt.map(_.am))
|
||||
.appendTags(txt.flatMap(_.tags).distinct.toList)
|
||||
}
|
||||
|
||||
// -- helpers
|
||||
|
@ -255,7 +255,9 @@ object ScanMailboxTask {
|
||||
s"mailbox-${ctx.args.account.user.id}",
|
||||
args.itemFolder,
|
||||
Seq.empty,
|
||||
true
|
||||
true,
|
||||
args.fileFilter,
|
||||
args.tags.getOrElse(Nil)
|
||||
)
|
||||
data = OUpload.UploadData(
|
||||
multiple = false,
|
||||
|
Reference in New Issue
Block a user