From 95ce0e39efa1d93def8ad20578d8ad93ffbcb716 Mon Sep 17 00:00:00 2001 From: arkon Date: Mon, 4 Jan 2021 12:14:02 -0500 Subject: [PATCH] Fix malformed extension URLs --- .../eu/kanade/tachiyomi/extension/api/ExtensionGithubApi.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/extension/api/ExtensionGithubApi.kt b/app/src/main/java/eu/kanade/tachiyomi/extension/api/ExtensionGithubApi.kt index ad66da5217..4cb1e7ee94 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/extension/api/ExtensionGithubApi.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/extension/api/ExtensionGithubApi.kt @@ -71,14 +71,14 @@ internal class ExtensionGithubApi { val versionCode = element.jsonObject["code"]!!.jsonPrimitive.int val lang = element.jsonObject["lang"]!!.jsonPrimitive.content val nsfw = element.jsonObject["nsfw"]!!.jsonPrimitive.int == 1 - val icon = "$REPO_URL_PREFIX/icon/${apkName.replace(".apk", ".png")}" + val icon = "${REPO_URL_PREFIX}icon/${apkName.replace(".apk", ".png")}" Extension.Available(name, pkgName, versionName, versionCode, lang, nsfw, apkName, icon) } } fun getApkUrl(extension: Extension.Available): String { - return "$REPO_URL_PREFIX/apk/${extension.apkName}" + return "${REPO_URL_PREFIX}apk/${extension.apkName}" } companion object {