2018-06-14 23:06:31 +00:00
|
|
|
'use strict';
|
|
|
|
|
2018-04-18 00:46:12 +00:00
|
|
|
module.exports = {
|
2018-04-22 21:46:14 +00:00
|
|
|
library: {
|
2019-11-01 03:22:36 +00:00
|
|
|
base: {
|
|
|
|
posts: 'output/{user.name}/',
|
|
|
|
direct: 'output/{host.name}/',
|
2018-04-22 21:46:14 +00:00
|
|
|
},
|
2019-11-01 03:22:36 +00:00
|
|
|
posts: {
|
|
|
|
image: '{base.posts}{post.date} - {tags.preview}{item.id} - {post.title}{ext}',
|
|
|
|
video: '{base.posts}{post.date} - {tags.preview}{item.id} - {post.title}{ext}',
|
|
|
|
text: '{base.posts}{post.date} - {tags.preview}{post.id} - {post.title}',
|
|
|
|
album: {
|
|
|
|
image: '{base.posts}{post.date} - {tags.preview}{album.id} - {post.title}/{item.index} - {item.id}{ext}',
|
|
|
|
video: '{base.posts}{post.date} - {tags.preview}{album.id} - {post.title}/{item.index} - {item.id}{ext}',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
direct: {
|
|
|
|
image: '{base.direct}{item.date} - {tags.preview}{item.id} - {item.title}{ext}',
|
|
|
|
video: '{base.direct}{item.date} - {tags.preview}{item.id} - {item.title}{ext}',
|
|
|
|
text: '{base.direct}{item.date} - {tags.preview}{item.id} - {item.title}',
|
|
|
|
album: {
|
|
|
|
image: '{base.direct}{album.date} - {tags.preview}{album.id} - {album.title}/{item.index} - {item.id}{ext}',
|
|
|
|
video: '{base.direct}{album.date} - {tags.preview}{album.id} - {album.title}/{item.index} - {item.id}{ext}',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
extractSingleAlbumItem: true,
|
2018-04-22 21:46:14 +00:00
|
|
|
profile: {
|
2019-11-01 03:22:36 +00:00
|
|
|
image: '{base.posts}{user.created} - profile{ext}',
|
|
|
|
description: '{base.posts}{user.created} - profile ({tags.verified}{tags.verifiedEmail}{tags.gold}{tags.over18})',
|
2018-06-14 23:06:31 +00:00
|
|
|
avoidAvatar: true,
|
2018-04-22 21:46:14 +00:00
|
|
|
},
|
2018-06-10 00:48:49 +00:00
|
|
|
index: {
|
2019-11-01 03:22:36 +00:00
|
|
|
file: '{base.posts}index',
|
|
|
|
},
|
|
|
|
meta: {
|
|
|
|
comment: '{item.description}',
|
2018-06-10 00:48:49 +00:00
|
|
|
},
|
2019-11-01 03:22:36 +00:00
|
|
|
tags: {
|
2018-04-22 21:46:14 +00:00
|
|
|
extracted: 'extracted-',
|
2018-05-05 00:14:48 +00:00
|
|
|
preview: 'preview-',
|
2018-04-22 21:46:14 +00:00
|
|
|
verified: '✔',
|
|
|
|
verifiedEmail: '✉',
|
|
|
|
gold: '★',
|
2018-06-14 23:06:31 +00:00
|
|
|
over18: '♥',
|
2018-04-18 00:46:12 +00:00
|
|
|
},
|
2018-04-20 02:40:37 +00:00
|
|
|
dateFormat: 'YYYYMMDD',
|
2018-05-23 15:03:12 +00:00
|
|
|
truncate: {
|
|
|
|
limit: 250,
|
2018-06-14 23:06:31 +00:00
|
|
|
truncator: '...',
|
2018-05-23 15:03:12 +00:00
|
|
|
},
|
2018-04-18 00:46:12 +00:00
|
|
|
indexOffset: 1,
|
2018-04-20 02:40:37 +00:00
|
|
|
slashSubstitute: '#',
|
2018-04-18 00:46:12 +00:00
|
|
|
},
|
2018-04-22 23:50:07 +00:00
|
|
|
fetch: {
|
2018-04-23 22:55:58 +00:00
|
|
|
sort: 'new',
|
2018-04-18 00:46:12 +00:00
|
|
|
limit: 1000,
|
2018-05-04 22:51:58 +00:00
|
|
|
avoidDuplicates: true,
|
2018-05-05 15:08:40 +00:00
|
|
|
retries: 3,
|
2018-07-02 01:45:20 +00:00
|
|
|
concurrency: 10,
|
2018-07-01 01:06:57 +00:00
|
|
|
watch: {
|
2018-07-01 21:16:03 +00:00
|
|
|
schedule: '*/30 * * * *',
|
2018-07-01 01:06:57 +00:00
|
|
|
},
|
2018-05-04 22:51:58 +00:00
|
|
|
archives: {
|
|
|
|
search: false,
|
2018-05-05 00:14:48 +00:00
|
|
|
preview: true,
|
2018-05-04 22:51:58 +00:00
|
|
|
reddit: ['ip'],
|
2018-06-14 23:06:31 +00:00
|
|
|
reupload: [],
|
|
|
|
},
|
2018-04-22 23:50:07 +00:00
|
|
|
},
|
|
|
|
reddit: {
|
2018-04-18 00:46:12 +00:00
|
|
|
api: {
|
2018-05-23 15:03:12 +00:00
|
|
|
userAgent: 'reddit-post-dump',
|
|
|
|
clientId: '1234567abcdefg',
|
|
|
|
access_token: 'abcD123eFg45Hi6J7klmnop8qr9',
|
2018-04-18 00:46:12 +00:00
|
|
|
token_type: 'bearer',
|
|
|
|
expires_in: 3600,
|
2018-05-23 15:03:12 +00:00
|
|
|
refresh_token: '1234567-A-Bc-defg8912hij-klm345opqr',
|
2018-06-14 23:06:31 +00:00
|
|
|
scope: 'history identity mysubreddits read subscribe',
|
|
|
|
},
|
2018-04-18 00:46:12 +00:00
|
|
|
},
|
2018-07-06 21:05:58 +00:00
|
|
|
methods: {
|
|
|
|
imgur: {
|
|
|
|
clientId: null,
|
|
|
|
},
|
|
|
|
},
|
2018-04-18 00:46:12 +00:00
|
|
|
};
|