ripunzel/config/default.js

76 lines
2.2 KiB
JavaScript
Raw Normal View History

'use strict';
2024-09-11 03:16:53 +00:00
module.exports = {
library: {
base: 'output/$user/',
image: '$base$postDate - $preview$itemId - $postTitle$ext',
video: '$base$postDate - $preview$itemId - $postTitle$ext',
text: '$base$postDate - $preview$postId - $postTitle',
2024-09-11 03:16:53 +00:00
album: {
image: '$base$postDate - $preview$albumId - $postTitle/$itemIndex - $itemId$ext',
video: '$base$postDate - $preview$albumId - $postTitle/$itemIndex - $itemId$ext',
extractSingleItem: true,
},
profile: {
2024-09-11 03:16:53 +00:00
image: '$base$userCreated - profile$ext',
description: '$base$userCreated - profile ($userVerified$userVerifiedEmail$userGold$profileOver18)',
avoidAvatar: true,
},
index: {
file: '$base/index',
format: 'tsv',
keys: ['postId', 'subreddit', 'postDate', 'url', 'hostId', 'postTitle'],
},
booleans: {
extracted: 'extracted-',
preview: 'preview-',
verified: '✔',
verifiedEmail: '✉',
gold: '★',
over18: '♥',
2024-09-11 03:16:53 +00:00
},
2024-09-11 03:16:53 +00:00
meta: {
comment: '$itemDescription',
2024-09-11 03:16:53 +00:00
},
dateFormat: 'YYYYMMDD',
truncate: {
limit: 250,
truncator: '...',
},
2024-09-11 03:16:53 +00:00
indexOffset: 1,
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: [],
},
},
reddit: {
2024-09-11 03:16:53 +00:00
api: {
userAgent: 'reddit-post-dump',
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
};