Added support for fetching content directly from host. Improved pattern interpolation. Refactored content modules.
This commit is contained in:
@@ -2,26 +2,41 @@
|
||||
|
||||
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',
|
||||
album: {
|
||||
image: '$base$postDate - $preview$albumId - $postTitle/$itemIndex - $itemId$ext',
|
||||
video: '$base$postDate - $preview$albumId - $postTitle/$itemIndex - $itemId$ext',
|
||||
extractSingleItem: true,
|
||||
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$userCreated - profile$ext',
|
||||
description: '$base$userCreated - profile ($userVerified$userVerifiedEmail$userGold$profileOver18)',
|
||||
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/index',
|
||||
format: 'tsv',
|
||||
keys: ['postId', 'subreddit', 'postDate', 'url', 'hostId', 'postTitle'],
|
||||
file: '{base.posts}index',
|
||||
},
|
||||
booleans: {
|
||||
meta: {
|
||||
comment: '{item.description}',
|
||||
},
|
||||
tags: {
|
||||
extracted: 'extracted-',
|
||||
preview: 'preview-',
|
||||
verified: '✔',
|
||||
@@ -29,9 +44,6 @@ module.exports = {
|
||||
gold: '★',
|
||||
over18: '♥',
|
||||
},
|
||||
meta: {
|
||||
comment: '$itemDescription',
|
||||
},
|
||||
dateFormat: 'YYYYMMDD',
|
||||
truncate: {
|
||||
limit: 250,
|
||||
|
||||
Reference in New Issue
Block a user