2024-09-11 03:16:56 +00:00
|
|
|
'use strict';
|
|
|
|
|
2024-09-11 03:16:53 +00:00
|
|
|
module.exports = {
|
2024-09-11 03:16:53 +00:00
|
|
|
library: {
|
2024-09-11 03:16:57 +00:00
|
|
|
base: {
|
2024-09-11 03:16:57 +00:00
|
|
|
posts: 'output/{user.name}/{label}/',
|
|
|
|
direct: 'output/{host.name}/{label}/',
|
2024-09-11 03:16:53 +00:00
|
|
|
},
|
2024-09-11 03:16:57 +00:00
|
|
|
posts: {
|
2024-09-11 03:16:58 +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}',
|
2024-09-11 03:16:57 +00:00
|
|
|
album: {
|
2024-09-11 03:16:58 +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}',
|
2024-09-11 03:16:57 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
direct: {
|
2024-09-11 03:16:58 +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}',
|
2024-09-11 03:16:57 +00:00
|
|
|
album: {
|
2024-09-11 03:16:58 +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}',
|
2024-09-11 03:16:57 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
extractSingleAlbumItem: true,
|
2024-09-11 03:16:53 +00:00
|
|
|
profile: {
|
2024-09-11 03:16:57 +00:00
|
|
|
image: '{base.posts}{user.created}{div}profile{ext}',
|
2024-09-11 03:16:58 +00:00
|
|
|
description: '{base.posts}{user.created}{div}profile ({tags.verified}{tags.verifiedEmail}{tags.gold}{tags.over18})',
|
2024-09-11 03:16:56 +00:00
|
|
|
avoidAvatar: true,
|
2024-09-11 03:16:53 +00:00
|
|
|
},
|
2024-09-11 03:16:56 +00:00
|
|
|
index: {
|
2024-09-11 03:16:57 +00:00
|
|
|
file: '{base.posts}index',
|
|
|
|
},
|
|
|
|
meta: {
|
|
|
|
comment: '{item.description}',
|
2024-09-11 03:16:56 +00:00
|
|
|
},
|
2024-09-11 03:16:57 +00:00
|
|
|
tags: {
|
2024-09-11 03:16:53 +00:00
|
|
|
extracted: 'extracted-',
|
2024-09-11 03:16:54 +00:00
|
|
|
preview: 'preview-',
|
2024-09-11 03:16:53 +00:00
|
|
|
verified: '✔',
|
|
|
|
verifiedEmail: '✉',
|
|
|
|
gold: '★',
|
2024-09-11 03:16:56 +00:00
|
|
|
over18: '♥',
|
2024-09-11 03:16:53 +00:00
|
|
|
},
|
2024-09-11 03:16:53 +00:00
|
|
|
dateFormat: 'YYYYMMDD',
|
2024-09-11 03:16:55 +00:00
|
|
|
truncate: {
|
|
|
|
limit: 250,
|
2024-09-11 03:16:56 +00:00
|
|
|
truncator: '...',
|
2024-09-11 03:16:55 +00:00
|
|
|
},
|
2024-09-11 03:16:53 +00:00
|
|
|
indexOffset: 1,
|
2024-09-11 03:16:57 +00:00
|
|
|
divider: ' - ',
|
2024-09-11 03:16:53 +00:00
|
|
|
slashSubstitute: '#',
|
2024-09-11 03:16:53 +00:00
|
|
|
},
|
2024-09-11 03:16:53 +00:00
|
|
|
fetch: {
|
2024-09-11 03:16:53 +00:00
|
|
|
sort: 'new',
|
2024-09-11 03:16:53 +00:00
|
|
|
limit: 1000,
|
2024-09-11 03:16:54 +00:00
|
|
|
avoidDuplicates: true,
|
2024-09-11 03:16:55 +00:00
|
|
|
retries: 3,
|
2024-09-11 03:16:56 +00:00
|
|
|
concurrency: 10,
|
2024-09-11 03:16:56 +00:00
|
|
|
watch: {
|
2024-09-11 03:16:56 +00:00
|
|
|
schedule: '*/30 * * * *',
|
2024-09-11 03:16:56 +00:00
|
|
|
},
|
2024-09-11 03:16:54 +00:00
|
|
|
archives: {
|
|
|
|
search: false,
|
2024-09-11 03:16:54 +00:00
|
|
|
preview: true,
|
2024-09-11 03:16:54 +00:00
|
|
|
reddit: ['ip'],
|
2024-09-11 03:16:56 +00:00
|
|
|
reupload: [],
|
|
|
|
},
|
2024-09-11 03:16:53 +00:00
|
|
|
},
|
2024-09-11 03:16:58 +00:00
|
|
|
logger: {
|
|
|
|
level: 'info',
|
|
|
|
},
|
|
|
|
limiter: {
|
2024-09-11 03:16:58 +00:00
|
|
|
concurrency: 10,
|
2024-09-11 03:16:58 +00:00
|
|
|
interval: 100,
|
|
|
|
},
|
2024-09-11 03:16:53 +00:00
|
|
|
reddit: {
|
2024-09-11 03:16:53 +00:00
|
|
|
api: {
|
2024-09-11 03:16:57 +00:00
|
|
|
userAgent: 'ripunzel',
|
2024-09-11 03:16:55 +00:00
|
|
|
clientId: '1234567abcdefg',
|
|
|
|
access_token: 'abcD123eFg45Hi6J7klmnop8qr9',
|
2024-09-11 03:16:53 +00:00
|
|
|
token_type: 'bearer',
|
|
|
|
expires_in: 3600,
|
2024-09-11 03:16:55 +00:00
|
|
|
refresh_token: '1234567-A-Bc-defg8912hij-klm345opqr',
|
2024-09-11 03:16:56 +00:00
|
|
|
scope: 'history identity mysubreddits read subscribe',
|
|
|
|
},
|
2024-09-11 03:16:53 +00:00
|
|
|
},
|
2024-09-11 03:16:57 +00:00
|
|
|
methods: {
|
|
|
|
imgur: {
|
|
|
|
clientId: null,
|
|
|
|
},
|
|
|
|
},
|
2024-09-11 03:16:53 +00:00
|
|
|
};
|