Style bugfix

pull/31/head
MillenniumEarl 2020-10-16 09:50:49 +02:00
parent 4504ddcc67
commit 3689be8969
1 changed files with 3 additions and 3 deletions

View File

@ -61,11 +61,11 @@ module.exports.getGameInfo = async function (browser, url) {
info.tags = await tags; info.tags = await tags;
info.f95url = url; info.f95url = url;
info.version = info.isMod ? info.version = info.isMod ?
parsedInfos["MOD VERSION"] : parsedInfos["MOD_VERSION"] :
parsedInfos["VERSION"]; parsedInfos["VERSION"];
info.lastUpdate = info.isMod ? info.lastUpdate = info.isMod ?
parsedInfos["UPDATED"] : parsedInfos["UPDATED"] :
parsedInfos["THREAD UPDATED"]; parsedInfos["THREAD_UPDATED"];
info.previewSource = await previewSource; info.previewSource = await previewSource;
info.changelog = (await changelog) || "Unknown changelog"; info.changelog = (await changelog) || "Unknown changelog";
//info.downloadInfo = await downloadData; //info.downloadInfo = await downloadData;
@ -186,7 +186,7 @@ function parseConversationPage(text) {
// Create pair key/value // Create pair key/value
const splitted = line.split(":"); const splitted = line.split(":");
const key = splitted[0].trim().toUpperCase(); // Uppercase to avoid mismatch const key = splitted[0].trim().toUpperCase().replaceAll(" ", "_"); // Uppercase to avoid mismatch
const value = splitted[1].trim(); const value = splitted[1].trim();
// Add pair to the dict if valid // Add pair to the dict if valid