chore(extractor): show label instead of host for errors

This commit is contained in:
WebStreamr 2025-06-19 09:19:28 +00:00
parent d88cfd404c
commit 1d263b5540
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -29,7 +29,7 @@ export abstract class Extractor {
url,
isExternal: true,
error,
label: url.host,
label: this.label,
sourceId: `${this.id}`,
meta: {
countryCode,

View file

@ -23,7 +23,7 @@ exports[`ExtractorRegistry returns external url for error 1`] = `
"error": [Error: Fetcher error: 403: Forbidden
],
"isExternal": true,
"label": "dropload.io",
"label": "Dropload",
"meta": {
"countryCode": "de",
},
@ -39,7 +39,7 @@ exports[`ExtractorRegistry returns external url for error with title 1`] = `
"error": [Error: Fetcher error: 403: Forbidden
],
"isExternal": true,
"label": "dropload.io",
"label": "Dropload",
"meta": {
"countryCode": "de",
"title": "a title!",