removed mx karma key
This commit is contained in:
parent
88dd18428b
commit
c308ae09a5
@ -195,8 +195,6 @@ class ManiaExchangeManager {
|
||||
|
||||
// compile search URL
|
||||
$url = 'http://api.mania-exchange.com/' . $titlePrefix . '/maps/?ids=' . $id;
|
||||
$url .= '&key=t42kEMjzH7xpAjBFHAvEkC7rqAlw';
|
||||
|
||||
|
||||
return $this->maniaControl->fileReader->loadFile($url, function ($mapInfo, $error) use (&$function, $titlePrefix, $url) {
|
||||
$mxMapInfo = null;
|
||||
@ -227,7 +225,6 @@ class ManiaExchangeManager {
|
||||
|
||||
// compile search URL
|
||||
$url = 'http://api.mania-exchange.com/' . $titlePrefix . '/maps/?ids=' . $string;
|
||||
$url .= '&key=t42kEMjzH7xpAjBFHAvEkC7rqAlw';
|
||||
|
||||
$thisRef = $this;
|
||||
$success = $this->maniaControl->fileReader->loadFile($url, function ($mapInfo, $error) use ($thisRef, $titlePrefix, $url) {
|
||||
@ -304,13 +301,6 @@ class ManiaExchangeManager {
|
||||
|
||||
$url .= '&minexebuild=' . self::MIN_EXE_BUILD;
|
||||
|
||||
$url .= '&key=t42kEMjzH7xpAjBFHAvEkC7rqAlw';
|
||||
if ($titlePrefix == "tm") {
|
||||
$url .= '&mapgroup=17';
|
||||
} else {
|
||||
$url .= '&mapgroup=1';
|
||||
}
|
||||
|
||||
// Get MapTypes
|
||||
try {
|
||||
$scriptInfos = $this->maniaControl->client->getModeScriptInfo();
|
||||
|
@ -611,13 +611,8 @@ class MapManager implements CallbackListener {
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO hardcoded during closed beta, later take just $mapInfo->url again
|
||||
$url = 'http://' . $mapInfo->prefix . '.mania-exchange.com/' . $mapInfo->dir . '/download/' . $mapInfo->id;
|
||||
$url .= '?key=t42kEMjzH7xpAjBFHAvEkC7rqAlw';
|
||||
|
||||
|
||||
// Download the file
|
||||
$self->maniaControl->fileReader->loadFile($url, function ($file, $error) use (&$self, &$login, &$mapInfo, &$update) {
|
||||
$self->maniaControl->fileReader->loadFile($mapInfo->downloadurl, function ($file, $error) use (&$self, &$login, &$mapInfo, &$update) {
|
||||
if (!$file) {
|
||||
// Download error
|
||||
$self->maniaControl->chat->sendError('Download failed!', $login);
|
||||
|
Loading…
Reference in New Issue
Block a user