Merge pull request #770 from Stremio-Community/fix/comet-spam

This commit is contained in:
Sleeyax
2025-01-03 14:36:12 +01:00
committed by GitHub
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -209,7 +209,7 @@ getCached().then(cached => {
queue.drain = () => {
if (process.env.DISCORD_WEBHOOK && newAddons.length)
sendDiscordMessage(newAddons)
sendDiscordMessage(newAddons.filter(addon => !config.blockedAnnouncers.includes(addon.url)))
console.log('copying resources (styles, js, images)')
fs.readdirSync('./resources').forEach(file => {
const filePath = `./resources/${file}`
+4 -1
View File
@@ -31,5 +31,8 @@ module.exports = {
// sane timeouts for needle so it doesn't get stuck in a request
"needle": { "open_timeout": 5000, "response_timeout": 5000, "read_timeout": 5000, "follow_max": 5 },
// output folder for build
"build-dir": "./out"
"build-dir": "./out",
"blockedAnnouncers": [
"https://comet.elfhosted.com/manifest.json",
]
}