Compare commits

..

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

5 changed files with 5 additions and 4 deletions

1
.gitignore vendored
View File

@ -4,6 +4,5 @@ config/*.js
output/ output/
dist/ dist/
users users
users_invalid
posts posts
ignore ignore

2
package-lock.json generated
View File

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

View File

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

View File

@ -59,7 +59,7 @@ async function redgifs(host) {
id: data.gif.id, id: data.gif.id,
url: data.gif.urls.hd, url: data.gif.urls.hd,
description: data.gif.tags.join(', '), description: data.gif.tags.join(', '),
type: mime.getType(new URL(data.gif.urls.hd).pathname), type: mime.getType(data.gif.urls.hd),
datetime: new Date(data.gif.createDate * 1000), datetime: new Date(data.gif.createDate * 1000),
original: data.gif, original: data.gif,
}], }],

View File

@ -49,6 +49,8 @@ async function writeToIndex(posts, profilePaths, user, args) {
const yamlIndex = yaml.safeDump(data); const yamlIndex = yaml.safeDump(data);
const saved = await save(filepath, Buffer.from(yamlIndex, 'utf8')); const saved = await save(filepath, Buffer.from(yamlIndex, 'utf8'));
console.log(user);
logger.info(`Saved index with ${posts.length} new posts for ${user.name}`); logger.info(`Saved index with ${posts.length} new posts for ${user.name}`);
return saved; return saved;