chore(extractor): show label instead of host for errors
This commit is contained in:
parent
d88cfd404c
commit
1d263b5540
2 changed files with 3 additions and 3 deletions
|
|
@ -29,7 +29,7 @@ export abstract class Extractor {
|
|||
url,
|
||||
isExternal: true,
|
||||
error,
|
||||
label: url.host,
|
||||
label: this.label,
|
||||
sourceId: `${this.id}`,
|
||||
meta: {
|
||||
countryCode,
|
||||
|
|
|
|||
|
|
@ -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!",
|
||||
|
|
|
|||
Loading…
Reference in a new issue