mirror of
https://github.com/Viren070/stremio-addons-list.git
synced 2025-12-01 23:19:02 +01:00
Merge pull request #770 from Stremio-Community/fix/comet-spam
This commit is contained in:
@@ -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}`
|
||||
|
||||
@@ -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",
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user