Compare commits

..

No commits in common. "3f905c6c54458f0237138d6b8ce712a87e789569" and "d8059b41737df5763b2a3e9523d1841799e5c3ba" have entirely different histories.

3 changed files with 4 additions and 9 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "ripunzel",
"version": "1.24.1",
"version": "1.24.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "ripunzel",
"version": "1.24.1",
"version": "1.24.0",
"description": "Web content archiving tool, with versatile filename patterns and extensive options for reddit user profiles.",
"main": "app.js",
"scripts": {

View File

@ -47,15 +47,10 @@ async function writeToIndex(posts, profilePaths, user, args) {
try {
const yamlIndex = yaml.safeDump(data);
const saved = await save(filepath, Buffer.from(yamlIndex, 'utf8'));
console.log(user);
logger.info(`Saved index with ${posts.length} new posts for ${user.name}`);
return saved;
return save(filepath, Buffer.from(yamlIndex, 'utf8'));
} catch (error) {
logger.error(`Could not save index for ${user.name}: ${error.message}`);
logger.error(`Could not save index for ${user.username}: ${error.message}`);
return null;
}
}