Merge branch 'main' into update-scripts

This commit is contained in:
Sarah Doire 2023-03-20 11:24:36 -05:00
commit 938a02c587
2 changed files with 4 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 MiB

After

Width:  |  Height:  |  Size: 5.2 MiB

View File

@ -223,6 +223,10 @@ const RootExtractor = {
content, content,
}; };
} }
let extendedResults = {};
if (extractor.extend) {
extendedResults = selectExtendedTypes(extractor.extend, opts);
}
const title = extractResult({ ...opts, type: 'title' }); const title = extractResult({ ...opts, type: 'title' });
const date_published = extractResult({ ...opts, type: 'date_published' }); const date_published = extractResult({ ...opts, type: 'date_published' });
const author = extractResult({ ...opts, type: 'author' }); const author = extractResult({ ...opts, type: 'author' });
@ -247,11 +251,6 @@ const RootExtractor = {
type: 'url_and_domain', type: 'url_and_domain',
}) || { url: null, domain: null }; }) || { url: null, domain: null };
let extendedResults = {};
if (extractor.extend) {
extendedResults = selectExtendedTypes(extractor.extend, opts);
}
return { return {
title, title,
content, content,