fix curse update check
This commit is contained in:
parent
43d6589572
commit
ad3862f14a
|
@ -1,7 +1,5 @@
|
||||||
package matterlink.update
|
package matterlink.update
|
||||||
|
|
||||||
import com.google.gson.Gson
|
|
||||||
|
|
||||||
data class CurseFile(
|
data class CurseFile(
|
||||||
val downloadURL: String,
|
val downloadURL: String,
|
||||||
val fileName: String,
|
val fileName: String,
|
||||||
|
|
|
@ -61,12 +61,12 @@ class UpdateChecker : Thread() {
|
||||||
}
|
}
|
||||||
|
|
||||||
val gson = GsonBuilder()
|
val gson = GsonBuilder()
|
||||||
.setFieldNamingPolicy(FieldNamingPolicy.UPPER_CAMEL_CASE)
|
// .setFieldNamingPolicy(FieldNamingPolicy.UPPER_CAMEL_CASE)
|
||||||
.create()
|
.create()
|
||||||
|
|
||||||
logger.info("Checking for new versions...")
|
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
|
val con = url.openConnection() as HttpURLConnection
|
||||||
|
|
||||||
with(instance) {
|
with(instance) {
|
||||||
|
|
Loading…
Reference in New Issue