Update default config & better date logic

This commit is contained in:
2024-01-10 17:06:25 -05:00
parent 5c3f804a14
commit 4053d57438
2 changed files with 19 additions and 10 deletions

View File

@@ -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
}
tooLongAgo,
linkToIndex,
printDate
}