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: {
|
2019-11-02 01:19:23 +00:00
|
|
|
posts: 'output/{user.name}/{label}/',
|
|
|
|
direct: 'output/{host.name}/{label}/',
|
2018-04-22 21:46:14 +00:00
|
|
|
},
|
2019-11-01 03:22:36 +00:00
|
|
|
posts: {
|
2019-11-02 01:46:11 +00:00
|
|
|
image: '{base.posts}{post.date}{div}{tags.preview}{item.id}{div}{post.title}{ext}',
|
|
|
|
video: '{base.posts}{post.date}{div}{tags.preview}{item.id}{div}{post.title}{ext}',
|
|
|
|
text: '{base.posts}{post.date}{div}{tags.preview}{post.id}{div}{post.title}',
|
2019-11-01 03:22:36 +00:00
|
|
|
album: {
|
2019-11-02 01:46:11 +00:00
|
|
|
image: '{base.posts}{post.date}{div}{tags.preview}{album.id}{div}{post.title}/{item.index}{div}{item.id}{ext}',
|
|
|
|
video: '{base.posts}{post.date}{div}{tags.preview}{album.id}{div}{post.title}/{item.index}{div}{item.id}{ext}',
|
2019-11-01 03:22:36 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
direct: {
|
2019-11-02 01:46:11 +00:00
|
|
|
image: '{base.direct}{item.date}{div}{tags.preview}{item.id}{divs.item.title}{item.title}{ext}',
|
|
|
|
video: '{base.direct}{item.date}{div}{tags.preview}{item.id}{divs.item.title}{item.title}{ext}',
|
|
|
|
text: '{base.direct}{item.date}{div}{tags.preview}{item.id}{divs.item.title}{item.title}',
|
2019-11-01 03:22:36 +00:00
|
|
|
album: {
|
2019-11-02 01:46:11 +00:00
|
|
|
image: '{base.direct}{album.date}{div}{tags.preview}{album.id}{divs.album.title}{album.title}/{item.index}{div}{item.id}{ext}',
|
|
|
|
video: '{base.direct}{album.date}{div}{tags.preview}{album.id}{divs.album.title}{album.title}/{item.index}{div}{item.id}{ext}',
|
2019-11-01 03:22:36 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
extractSingleAlbumItem: true,
|
2018-04-22 21:46:14 +00:00
|
|
|
profile: {
|
2019-11-02 01:19:23 +00:00
|
|
|
image: '{base.posts}{user.created}{div}profile{ext}',
|
2019-11-02 01:46:11 +00:00
|
|
|
description: '{base.posts}{user.created}{div}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,
|
2019-11-02 01:19:23 +00:00
|
|
|
divider: ' - ',
|
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: {
|
2019-11-02 01:35:44 +00:00
|
|
|
userAgent: 'ripunzel',
|
2018-05-23 15:03:12 +00:00
|
|
|
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
|
|
|
};
|