@ariesfish/feedloom 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +2 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2069,11 +2069,12 @@ async function processItem(item, options) {
|
|
|
2069
2069
|
}
|
|
2070
2070
|
const title = cleaned.metadata.title || item.sourceTitle || titleFromUrl(item.url);
|
|
2071
2071
|
await cleanupExistingNote(options.outputDir, item.url);
|
|
2072
|
+
const imageFetch = options.fetchImage ?? (activeProfiles.some((profile) => profile.fetch?.useProxyEnv) ? proxyAwareFetch : void 0);
|
|
2072
2073
|
const contentHtml = options.localizeAssets === false ? cleaned.content : await localizeImages(cleaned.content, {
|
|
2073
2074
|
outputDir: options.outputDir,
|
|
2074
2075
|
noteSlug: sanitizeFilename(title),
|
|
2075
2076
|
baseUrl: item.url,
|
|
2076
|
-
fetchImage:
|
|
2077
|
+
fetchImage: imageFetch
|
|
2077
2078
|
});
|
|
2078
2079
|
const markdown = demoteTopLevelHeadings(stripLeadingDateLine(stripDuplicateLeadingHeading(htmlToMarkdown(contentHtml), title)));
|
|
2079
2080
|
const outputPath = await writeMarkdownNote(options.outputDir, {
|