chore(extractor): cache ExternalUrl for 6h

This commit is contained in:
WebStreamr 2025-09-02 15:05:51 +00:00
parent 1b89cadab5
commit 41aacf84db
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View file

@ -8,7 +8,7 @@ export class ExternalUrl extends Extractor {
public readonly label = 'External';
public override readonly ttl = 3600000; // 1h
public override readonly ttl = 21600000; // 6h
public supports(ctx: Context, url: URL): boolean {
return showExternalUrls(ctx.config) && null !== url.host.match(/.*/);

View file

@ -15,7 +15,7 @@ exports[`ExternalUrl johnalwayssame.com with title 1`] = `
"title": "Black Mirror 4x2",
},
"sourceId": "external_fr",
"ttl": 3600000,
"ttl": 21600000,
"url": "https://johnalwayssame.com/e/cqy9oue7sv0g",
},
]
@ -34,7 +34,7 @@ exports[`ExternalUrl netu.fanstream.us 1`] = `
"title": undefined,
},
"sourceId": "external_fr",
"ttl": 3600000,
"ttl": 21600000,
"url": "https://netu.fanstream.us/e/0DFgfkcXOsDP",
},
]

View file

@ -15,7 +15,7 @@ exports[`ExtractorRegistry returns external URLs if enabled by config 1`] = `
"title": undefined,
},
"sourceId": "external_de",
"ttl": 3600000,
"ttl": 21600000,
"url": "https://mixdrop.ag/e/3nzwveprim63or6",
},
]