mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-04 03:14:40 -05:00
refactor
This commit is contained in:
@@ -94,8 +94,7 @@ fun installExtension(pkgName: String): Int {
|
||||
val jarPath = "${applicationDirs.extensionsRoot}/$fileNameWithoutType.jar"
|
||||
if (!File(jarPath).exists()) {
|
||||
runBlocking {
|
||||
val api = ExtensionGithubApi()
|
||||
val apkToDownload = api.getApkUrl(extensionRecord)
|
||||
val apkToDownload = ExtensionGithubApi.getApkUrl(extensionRecord)
|
||||
|
||||
val apkFilePath = "$dirPathWithoutType.apk"
|
||||
val jarFilePath = "$dirPathWithoutType.jar"
|
||||
|
||||
@@ -37,7 +37,7 @@ fun getExtensionList(): List<ExtensionDataClass> {
|
||||
logger.debug("Getting extensions list from the internet")
|
||||
ExtensionListData.lastUpdateCheck = System.currentTimeMillis()
|
||||
runBlocking {
|
||||
val foundExtensions = ExtensionGithubApi().findExtensions()
|
||||
val foundExtensions = ExtensionGithubApi.findExtensions()
|
||||
updateExtensionDatabase(foundExtensions)
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user