Separate normalizers out, fix config flag checks

This commit is contained in:
Will Boyd
2025-01-25 16:23:45 -05:00
parent 6a6e5074f0
commit 8841c607e7
4 changed files with 46 additions and 47 deletions
+2 -2
View File
@@ -18,10 +18,10 @@ export async function parseFilePromise(config) {
const posts = collectPosts(channelData, postTypes, config);
const images = [];
if (config.saveAttachedImages) {
if (config.saveImages === 'attached' || config.saveImages === 'all') {
images.push(...collectAttachedImages(channelData));
}
if (config.saveScrapedImages) {
if (config.saveImages === 'scraped' || config.saveImages === 'all') {
images.push(...collectScrapedImages(channelData, postTypes));
}