diff --git a/default/config.js b/default/config.js index ad55859..b62aa19 100644 --- a/default/config.js +++ b/default/config.js @@ -1,17 +1,24 @@ const pageSize = 20 -const courtesyWait = 1000 -const tooLongAgo = 7 * 2 // Days +const courtesyWait = 1000 * 1 +const tooLongAgo = 7 * 4 // Days +const linkToIndex = false + +const printDate = date => + (date.getMonth() + 1) + '.' + date.getDate() + '.' + date.getFullYear() const feeds = { - nitter: [], - tumblr: [] + main: { + main: true, + nitter: [], + tumblr: [ + 'dakedres' + ] + } } const sources = { nitter: [ - "nitter.salastil.com", "nt.ggtyler.dev", - "nitter.hyperreal.coffee", "nitter.unixfox.eu", "nitter.poast.org", "nitter.cz", @@ -94,5 +101,7 @@ module.exports = { sources, pageSize, courtesyWait, - tooLongAgo -} \ No newline at end of file + tooLongAgo, + linkToIndex, + printDate +} diff --git a/index.js b/index.js index bc7441c..55667eb 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,5 @@ const fetch = require('node-fetch') -const config = require('./config.js.ignore') +const config = require('./config.js') const Path = require('path') let cache = require('./cache.json') @@ -240,7 +240,7 @@ ${header} html += ` ${post.images.map(renderImage).join('\n')} -

${post.user} ${date.getMonth()}/${date.getDate()}/${date.getFullYear()} open


` +

${post.user} ${config.printDate(date)} open


` } if(footer) {