diff --git a/src/scraper/nhentai/nhentaiSearchController.ts b/src/scraper/nhentai/nhentaiSearchController.ts index 8009b1c..10dda79 100644 --- a/src/scraper/nhentai/nhentaiSearchController.ts +++ b/src/scraper/nhentai/nhentaiSearchController.ts @@ -13,9 +13,9 @@ export async function scrapeContent(url: string) { const objectData = { title: rawData.result[i].title, id: rawData.result[i].id, + language: rawData.result[i].tags.find((tag: any) => tag.type === "language") ? rawData.result[i].tags.find((tag: any) => tag.type === "language").name : null, upload_date: `${getDate(time)} (${timeAgo(time)})`, total: rawData.result[i].num_pages, - //get all tags name tags: rawData.result[i].tags.map((tag: any) => tag.name), };