Skip to content

Commit

Permalink
fix ext icons with .json repo urls
Browse files Browse the repository at this point in the history
  • Loading branch information
az4521 committed Jan 9, 2024
1 parent 76f2e02 commit 89addc1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ internal class ExtensionGithubApi {
val lang = element.jsonObject["lang"]!!.jsonPrimitive.content
val nsfw = element.jsonObject["nsfw"]!!.jsonPrimitive.int == 1
// SY -->
val icon = "${repoUrl}icon/$pkgName.png"
val icon = "${repoUrl.substringBeforeLast("index.min.json")}icon/$pkgName.png"
// SY <--

Extension.Available(name, pkgName, versionName, versionCode, libVersion, lang, nsfw, apkName, icon /* SY --> */, repoUrl /* SY <-- */)
Expand Down

0 comments on commit 89addc1

Please sign in to comment.