Fixed character codes displaying in places
This commit is contained in:
parent
7febaa6e7d
commit
4695e56507
3 changed files with 8 additions and 8 deletions
|
@ -19,7 +19,7 @@ module.exports = async (app, req, res) => {
|
|||
let account = app.parseResponse(body)
|
||||
let accObj = {
|
||||
rank: "0",
|
||||
username: app.clean(account[1]),
|
||||
username: account[1],
|
||||
playerID: account[2],
|
||||
accountID: account[16],
|
||||
stars: account[3],
|
||||
|
|
|
@ -84,8 +84,8 @@ module.exports = async (app, req, res, api, ID, analyze) => {
|
|||
}, function (err2, res2, b2) {
|
||||
if (b2 != '-1') {
|
||||
let account = app.parseResponse(b2)
|
||||
level.author = app.clean(account[1])
|
||||
level.accountID = app.clean(gdSearchResult[16])
|
||||
level.author = account[1]
|
||||
level.accountID = gdSearchResult[16]
|
||||
}
|
||||
|
||||
else {
|
||||
|
@ -101,7 +101,7 @@ module.exports = async (app, req, res, api, ID, analyze) => {
|
|||
|
||||
if (songRes != '-1') {
|
||||
let songData = app.parseResponse(songRes, '~|~')
|
||||
level.songName = app.clean(songData[2] || "Unknown")
|
||||
level.songName = songData[2] || "Unknown"
|
||||
level.songAuthor = songData[4] || "Unknown"
|
||||
level.songSize = (songData[5] || "0") + "MB"
|
||||
level.songID = songData[1] || level.customSong
|
||||
|
|
|
@ -32,7 +32,7 @@ module.exports = async (app, req, res, api, getLevels) => {
|
|||
let account = app.parseResponse(body)
|
||||
|
||||
let userData = {
|
||||
username: app.clean(account[1]),
|
||||
username: account[1],
|
||||
playerID: account[2],
|
||||
accountID: account[16],
|
||||
rank: account[30],
|
||||
|
@ -46,9 +46,9 @@ module.exports = async (app, req, res, api, getLevels) => {
|
|||
messages: account[18] == "0" ? "all" : account[18] == "1" ? "friends" : "off",
|
||||
commentHistory: account[50] == "0" ? "all" : account[50] == "1" ? "friends" : "off",
|
||||
moderator: account[49],
|
||||
youtube: app.clean(account[20]) || null,
|
||||
twitter: app.clean(account[44]) || null,
|
||||
twitch: app.clean(account[45]) || null,
|
||||
youtube: account[20] || null,
|
||||
twitter: account[44] || null,
|
||||
twitch: account[45] || null,
|
||||
icon: account[21],
|
||||
ship: account[22],
|
||||
ball: account[23],
|
||||
|
|
Loading…
Add table
Reference in a new issue