fix curse update check

This commit is contained in:
nikky 2018-07-15 17:28:33 +02:00
parent 43d6589572
commit ad3862f14a
2 changed files with 2 additions and 4 deletions

View File

@ -1,7 +1,5 @@
package matterlink.update
import com.google.gson.Gson
data class CurseFile(
val downloadURL: String,
val fileName: String,

View File

@ -61,12 +61,12 @@ class UpdateChecker : Thread() {
}
val gson = GsonBuilder()
.setFieldNamingPolicy(FieldNamingPolicy.UPPER_CAMEL_CASE)
// .setFieldNamingPolicy(FieldNamingPolicy.UPPER_CAMEL_CASE)
.create()
logger.info("Checking for new versions...")
val url = URL("https://cursemeta.dries007.net/api/v2/direct/GetAllFilesForAddOn/287323")
val url = URL("https://staging_cursemeta.dries007.net/api/v3/direct/addon/287323/files")
val con = url.openConnection() as HttpURLConnection
with(instance) {