Skip to content

Commit

Permalink
fixed flash url
Browse files Browse the repository at this point in the history
  • Loading branch information
higoka committed Nov 28, 2023
1 parent f7836ed commit 053f3f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ async function initConfig (argv) {
config.format = 'gif'
}

config.prod = (await fetchText(`https://www.habbo.${config.domain}/gamedata/external_variables/0`)).match(/(?<=flash\.client\.url).*(PRODUCTION-[^\/]+)/mi)[1]
config.prod = (await fetchText(`https://www.habbo.${config.domain}/gamedata/external_variables/0`)).match(/flash\.client\.url=.+(flash-assets-[^/]+)/mi)[1]
}

module.exports = { fetchText, fetchJson, fetchOne, fetchMany, fetchUntil, parseXml, checkUpdate, initConfig, config }

0 comments on commit 053f3f4

Please sign in to comment.