diff options
author | Minteck <contact@minteck.org> | 2022-01-14 14:37:21 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-01-14 14:37:21 +0100 |
commit | 81884db115f3f6a5d4e968fb77cc050cadb1a05e (patch) | |
tree | 040d5448c46a432facef26d4f9f9fc2823090466 /update/parse.js | |
parent | 541633055c76a0c002fb8509f106f4b449e21207 (diff) | |
download | ponyfind-81884db115f3f6a5d4e968fb77cc050cadb1a05e.tar.gz ponyfind-81884db115f3f6a5d4e968fb77cc050cadb1a05e.tar.bz2 ponyfind-81884db115f3f6a5d4e968fb77cc050cadb1a05e.zip |
v8
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, "")); |