88 lines
2.9 KiB
JavaScript
88 lines
2.9 KiB
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
library: {
|
|
base: {
|
|
posts: 'output/{user.name}/',
|
|
direct: 'output/{host.name}/',
|
|
},
|
|
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,
|
|
profile: {
|
|
image: '{base.posts}{user.created} - profile{ext}',
|
|
description: '{base.posts}{user.created} - profile ({tags.verified}{tags.verifiedEmail}{tags.gold}{tags.over18})',
|
|
avoidAvatar: true,
|
|
},
|
|
index: {
|
|
file: '{base.posts}index',
|
|
},
|
|
meta: {
|
|
comment: '{item.description}',
|
|
},
|
|
tags: {
|
|
extracted: 'extracted-',
|
|
preview: 'preview-',
|
|
verified: '✔',
|
|
verifiedEmail: '✉',
|
|
gold: '★',
|
|
over18: '♥',
|
|
},
|
|
dateFormat: 'YYYYMMDD',
|
|
truncate: {
|
|
limit: 250,
|
|
truncator: '...',
|
|
},
|
|
indexOffset: 1,
|
|
slashSubstitute: '#',
|
|
},
|
|
fetch: {
|
|
sort: 'new',
|
|
limit: 1000,
|
|
avoidDuplicates: true,
|
|
retries: 3,
|
|
concurrency: 10,
|
|
watch: {
|
|
schedule: '*/30 * * * *',
|
|
},
|
|
archives: {
|
|
search: false,
|
|
preview: true,
|
|
reddit: ['ip'],
|
|
reupload: [],
|
|
},
|
|
},
|
|
reddit: {
|
|
api: {
|
|
userAgent: 'reddit-post-dump',
|
|
clientId: '1234567abcdefg',
|
|
access_token: 'abcD123eFg45Hi6J7klmnop8qr9',
|
|
token_type: 'bearer',
|
|
expires_in: 3600,
|
|
refresh_token: '1234567-A-Bc-defg8912hij-klm345opqr',
|
|
scope: 'history identity mysubreddits read subscribe',
|
|
},
|
|
},
|
|
methods: {
|
|
imgur: {
|
|
clientId: null,
|
|
},
|
|
},
|
|
};
|