Fix genre parsing

pull/83/head
MillenniumEarl 2021-03-21 18:54:58 +01:00
parent 751036f0d3
commit 6a6827e39a
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ function fillWithPostData(hw: HandiWork, elements: IPostElement[]) {
if (censored) hw.censored = stringToBoolean(censored.text); if (censored) hw.censored = stringToBoolean(censored.text);
// Get the genres // Get the genres
const genre = getPostElementByName(elements, "genre")?.content.shift()?.text; const genre = getPostElementByName(elements, "genre")?.text;
hw.genre = genre hw.genre = genre
?.split(",") ?.split(",")
.map((s) => s.trim()) .map((s) => s.trim())