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: {
|
|
|
|
base: 'output/$user/',
|
2018-05-05 00:14:48 +00:00
|
|
|
image: '$base$postDate - $preview$itemId - $postTitle$ext',
|
|
|
|
video: '$base$postDate - $preview$itemId - $postTitle$ext',
|
|
|
|
text: '$base$postDate - $preview$postId - $postTitle',
|
2018-04-18 00:46:12 +00:00
|
|
|
album: {
|
2018-05-05 00:14:48 +00:00
|
|
|
image: '$base$postDate - $preview$albumId - $postTitle/$itemIndex - $itemId$ext',
|
|
|
|
video: '$base$postDate - $preview$albumId - $postTitle/$itemIndex - $itemId$ext',
|
2018-06-14 23:06:31 +00:00
|
|
|
extractSingleItem: true,
|
2018-04-22 21:46:14 +00:00
|
|
|
},
|
|
|
|
profile: {
|
2018-04-24 20:25:36 +00:00
|
|
|
image: '$base$userCreated - profile$ext',
|
2018-04-27 21:14:48 +00:00
|
|
|
description: '$base$userCreated - profile ($userVerified$userVerifiedEmail$userGold$profileOver18)',
|
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: {
|
|
|
|
file: '$base/index',
|
2018-06-14 23:06:31 +00:00
|
|
|
format: 'tsv',
|
2018-06-30 01:33:30 +00:00
|
|
|
keys: ['postId', 'subreddit', 'postDate', 'url', 'hostId', 'postTitle'],
|
2018-06-10 00:48:49 +00:00
|
|
|
},
|
2018-04-22 21:46:14 +00:00
|
|
|
booleans: {
|
|
|
|
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-24 20:25:36 +00:00
|
|
|
meta: {
|
2018-06-14 23:06:31 +00:00
|
|
|
comment: '$itemDescription',
|
2018-04-24 20:25:36 +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-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
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
imgur: {
|
2018-06-14 23:06:31 +00:00
|
|
|
clientId: '1234567abcdefgh',
|
|
|
|
},
|
|
|
|
},
|
2018-04-18 00:46:12 +00:00
|
|
|
};
|