Merge pull request #2702 from omnivore-app/fix/content-fetch-fool-ca

Use scrapingbee for fool.ca
This commit is contained in:
Jackson Harper 2023-08-30 12:32:03 +08:00 committed by GitHub
commit 77d4d14573
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@ export class ScrapingBeeHandler extends ContentHandler {
shouldPreHandle(url: string): boolean {
const u = new URL(url)
const hostnames = ['nytimes.com', 'news.google.com']
const hostnames = ['nytimes.com', 'news.google.com', 'fool.ca']
return hostnames.some((h) => u.hostname.endsWith(h))
}