diff options
Diffstat (limited to 'src/config')
| -rw-r--r-- | src/config/defaults.ts | 1 | ||||
| -rw-r--r-- | src/config/types.ts | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/config/defaults.ts b/src/config/defaults.ts index cc52a5e..9b4bf1c 100644 --- a/src/config/defaults.ts +++ b/src/config/defaults.ts @@ -175,6 +175,7 @@ export default { categories: ["business", "top", "technology", "world"], // A list of news categories to filter by languages: ["en"], // A list of languages codes to filter by domains: [] as string[], // A list of news domains to pull from, see https://newsdata.io/news-sources for available domains + excludeDomains: ["news.google.com"], // A list of news domains to exclude, e.g. bbc.co.uk timezone: "", // A timezone to filter by, e.g. "America/New_York", see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones pages: 3, // Number of pages to pull (each page is 10 articles) }, diff --git a/src/config/types.ts b/src/config/types.ts index 66e0cfe..6127e6f 100644 --- a/src/config/types.ts +++ b/src/config/types.ts @@ -86,6 +86,7 @@ export default { "news.categories": ARR(NEWS_CATEGORIES), "news.languages": ARR(NEWS_LANGUAGES), "news.domains": ARR(STR), + "news.excludeDomains": ARR(STR), "news.timezone": STR, "news.pages": NUM, } as { [k: string]: string | string[] | number[] }; |