Skip to content

Commit

Permalink
Merge pull request #109 from extractus/7.0.4
Browse files Browse the repository at this point in the history
v7.0.4 Fix issue #108
  • Loading branch information
ndaidong authored Aug 24, 2023
2 parents 76f5137 + ecb4ea8 commit e228331
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "7.0.3",
"version": "7.0.4",
"name": "@extractus/feed-extractor",
"description": "To read and normalize RSS/ATOM/JSON feed data",
"homepage": "https://extractor-demos.pages.dev",
Expand Down
4 changes: 2 additions & 2 deletions src/utils/parseAtomFeed.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ const transform = (item, options) => {
} = item

const pubDate = updated || modified || published || issued
const htmlContent = getText(content || summary)
const htmlContent = getText(summary || content)
const entry = {
id: getEntryId(id, link, pubDate),
title: getText(title),
link: getPureUrl(link, id, baseUrl),
published: useISODateFormat ? toISODateString(pubDate) : pubDate,
description: buildDescription(htmlContent || summary, descriptionMaxLen),
description: buildDescription(summary || htmlContent, descriptionMaxLen),
}

const extraFields = getExtraEntryFields(item)
Expand Down
4 changes: 2 additions & 2 deletions src/utils/parseRssFeed.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ const transform = (item, options) => {
} = item

const published = useISODateFormat ? toISODateString(pubDate) : pubDate
const htmlContent = getText(content || description)
const htmlContent = getText(description || content)
const entry = {
id: getEntryId(guid, link, pubDate),
title: getText(title),
link: getPureUrl(link, guid, baseUrl),
published,
description: buildDescription(htmlContent || description, descriptionMaxLen),
description: buildDescription(description || htmlContent, descriptionMaxLen),
}

const extraFields = getExtraEntryFields(item)
Expand Down

0 comments on commit e228331

Please sign in to comment.