mirror of
https://github.com/postlight/mercury-parser
synced 2024-10-31 03:20:40 +00:00
Merge branch 'main' into update-scripts
This commit is contained in:
commit
938a02c587
Binary file not shown.
Before Width: | Height: | Size: 2.0 MiB After Width: | Height: | Size: 5.2 MiB |
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user