mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
filter out summary if shorter than 200
This commit is contained in:
parent
3954fa309b
commit
9a6ec7a58b
1 changed files with 3 additions and 1 deletions
|
|
@ -419,7 +419,9 @@ const generateSpeechFiles = (
|
|||
// basic checks to make sure the summaries are good.
|
||||
const filterSummaries = (summaries: RankedItem[]): RankedItem[] => {
|
||||
return summaries.filter(
|
||||
(item) => item.summary.length < item.libraryItem.readableContent.length
|
||||
(item) =>
|
||||
item.summary.length > 200 ||
|
||||
item.summary.length < item.libraryItem.readableContent.length
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue