ripunzel/config/default.js

96 lines
3.1 KiB
JavaScript
Raw Normal View History

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