This commit is contained in:
dakedres 2023-08-17 12:34:54 -04:00
parent 5ccae68c6a
commit abaf7b918c
2 changed files with 6 additions and 32 deletions

View File

@ -1,8 +1,10 @@
const pageSize = 20 const pageSize = 20
const courtesyWait = 10 * 1000 const courtesyWait = 1000
const tooLongAgo = 7 * 2 // Days
const feeds = { const feeds = {
nitter: [] nitter: [],
tumblr: []
} }
const sources = { const sources = {
@ -104,23 +106,10 @@ const sources = {
] ]
} }
const endPage = `
<html>
<body>
<center>
<img src="end.jpg">
<h4>You have reached the end</h4>
<hr>
</center>
</body>
</html>`
module.exports = { module.exports = {
feeds, feeds,
sources, sources,
pageSize, pageSize,
courtesyWait, courtesyWait,
endPage tooLongAgo
} }

View File

@ -131,19 +131,6 @@ const getImages = (user, description) => {
const processNitter = (rss, user) => { const processNitter = (rss, user) => {
return processRss(rss, (item, description) => { return processRss(rss, (item, description) => {
// if(dcCreatorRegex.test(item))
// return
// let images = []
// for(let [, url] of getImageMatches(description) ) {
// images.push(url)
// }
// if(images.length > 0) {
// return { images, user }
// }
let creator = item.getElementsByTagName('dc:creator')[0] let creator = item.getElementsByTagName('dc:creator')[0]
if(creator.innerHTML.slice(1) === user) if(creator.innerHTML.slice(1) === user)
@ -159,8 +146,6 @@ const handleTumblrUser = async (user) => {
} }
const processTumblr = (rss, user) => { const processTumblr = (rss, user) => {
// const unescapedRss = unescape(rss)
return processRss(rss, (item, description) => { return processRss(rss, (item, description) => {
let reblog = description.querySelector('p > a.tumblr_blog') let reblog = description.querySelector('p > a.tumblr_blog')