From 6a6827e39a5e5b056f8fb76a68567c4e6939c051 Mon Sep 17 00:00:00 2001 From: MillenniumEarl Date: Sun, 21 Mar 2021 18:54:58 +0100 Subject: [PATCH] Fix genre parsing --- src/scripts/scrape-data/handiwork-parse.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/scrape-data/handiwork-parse.ts b/src/scripts/scrape-data/handiwork-parse.ts index 764a904..1d34cf7 100644 --- a/src/scripts/scrape-data/handiwork-parse.ts +++ b/src/scripts/scrape-data/handiwork-parse.ts @@ -206,7 +206,7 @@ function fillWithPostData(hw: HandiWork, elements: IPostElement[]) { if (censored) hw.censored = stringToBoolean(censored.text); // Get the genres - const genre = getPostElementByName(elements, "genre")?.content.shift()?.text; + const genre = getPostElementByName(elements, "genre")?.text; hw.genre = genre ?.split(",") .map((s) => s.trim())