Fix genre parsing
parent
751036f0d3
commit
6a6827e39a
|
@ -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())
|
||||||
|
|
Loading…
Reference in New Issue