Skip to content

Commit 3d1d0c4

Browse files
committed
Remove extraneous keys from isfdb scraper
1 parent f67639e commit 3d1d0c4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/extractors/isfdb.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class isfdbScraper extends Extractor {
3232
}
3333

3434

35-
const remapings = remapKeys.bind(undefined, {
35+
const remappings = remapKeys.bind(undefined, {
3636
"Series Number": "Series Place",
3737
"Date": "Publication date",
3838
"Synopsis": "Description",
@@ -105,7 +105,7 @@ function scrapeBook(doc = document) {
105105
details[label] = value;
106106
}
107107

108-
details = remapings(details);
108+
details = remappings(details);
109109

110110
return details;
111111
}
@@ -218,7 +218,7 @@ async function scrapeEdition() {
218218
details[label] = value;
219219
}
220220

221-
details = remapings(details);
221+
details = remappings(details);
222222

223223
details["Reading Format"] = normalizeReadingFormat(details["Edition Format"]);
224224

@@ -263,6 +263,10 @@ async function scrapeEdition() {
263263
mappings,
264264
]);
265265

266+
delete details["Type"];
267+
delete details["Price"];
268+
delete details["Notes"];
269+
266270
return details;
267271
}
268272

0 commit comments

Comments
 (0)