Compare commits
2 Commits
3f905c6c54
...
94bc1cc3e1
Author | SHA1 | Date |
---|---|---|
|
94bc1cc3e1 | |
|
57cac468df |
|
@ -4,5 +4,6 @@ config/*.js
|
|||
output/
|
||||
dist/
|
||||
users
|
||||
users_invalid
|
||||
posts
|
||||
ignore
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "ripunzel",
|
||||
"version": "1.24.1",
|
||||
"version": "1.24.2",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "ripunzel",
|
||||
"version": "1.24.1",
|
||||
"version": "1.24.2",
|
||||
"description": "Web content archiving tool, with versatile filename patterns and extensive options for reddit user profiles.",
|
||||
"main": "app.js",
|
||||
"scripts": {
|
||||
|
|
|
@ -59,7 +59,7 @@ async function redgifs(host) {
|
|||
id: data.gif.id,
|
||||
url: data.gif.urls.hd,
|
||||
description: data.gif.tags.join(', '),
|
||||
type: mime.getType(data.gif.urls.hd),
|
||||
type: mime.getType(new URL(data.gif.urls.hd).pathname),
|
||||
datetime: new Date(data.gif.createDate * 1000),
|
||||
original: data.gif,
|
||||
}],
|
||||
|
|
|
@ -49,8 +49,6 @@ async function writeToIndex(posts, profilePaths, user, args) {
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue