diff options
Diffstat (limited to 'update/parse.js')
-rw-r--r-- | update/parse.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/update/parse.js b/update/parse.js index 088e8d2..ebcd9e3 100644 --- a/update/parse.js +++ b/update/parse.js @@ -13,6 +13,7 @@ let ponies = {}; names: [title], extract: "", extract_fr: "", + generation: -1, color: "000000", image: "https://example.com", kind: "Pony", @@ -22,6 +23,8 @@ let ponies = {}; mark: "https://example.com" } + if (typeof box._gen !== "undefined") data.generation = box._gen; + if (typeof box.name2 !== "undefined") data.names.push(box.name2.replace(/<!--[\s\S]*?-->/g, "")); if (typeof box.name3 !== "undefined") data.names.push(box.name3.replace(/<!--[\s\S]*?-->/g, "")); if (typeof box.name4 !== "undefined") data.names.push(box.name4.replace(/<!--[\s\S]*?-->/g, "")); |