chore(extractor): cache ExternalUrl for 6h
This commit is contained in:
parent
1b89cadab5
commit
41aacf84db
3 changed files with 4 additions and 4 deletions
|
|
@ -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(/.*/);
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
},
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
},
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in a new issue