generated from ztimson/template
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a45d7bad8c |
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ztimson/zim-utils",
|
"name": "@ztimson/zim-utils",
|
||||||
"version": "0.4.2",
|
"version": "0.4.3",
|
||||||
"description": "Native, dependency-light ZIM archive reader/searcher and Kiwix catalog downloader for Node.js",
|
"description": "Native, dependency-light ZIM archive reader/searcher and Kiwix catalog downloader for Node.js",
|
||||||
"author": "Zak Timson",
|
"author": "Zak Timson",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
+1
-1
@@ -275,7 +275,7 @@ export class KiwixServer {
|
|||||||
|
|
||||||
const found = fromXml(await res.text())?.rss?.channel?.item || [];
|
const found = fromXml(await res.text())?.rss?.channel?.item || [];
|
||||||
|
|
||||||
return found.map(hit => {
|
return makeArray(found).map(hit => {
|
||||||
const resultBook = bookMap.get(hit.book?.title) || book;
|
const resultBook = bookMap.get(hit.book?.title) || book;
|
||||||
|
|
||||||
const prefix = `/content/${resultBook.href}/`;
|
const prefix = `/content/${resultBook.href}/`;
|
||||||
|
|||||||
Reference in New Issue
Block a user