Skip to content

Commit

Permalink
fix: extension installing
Browse files Browse the repository at this point in the history
  • Loading branch information
rebelonion committed Jan 3, 2025
1 parent 0d365d5 commit eec8605
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ internal class ExtensionGithubApi {
}

fun getAnimeApkUrl(extension: AnimeExtension.Available): String {
return "${extension.repository}/apk/${extension.apkName}"
return "${extension.repository.removeSuffix("index.min.json")}/apk/${extension.apkName}"
}

private fun List<ExtensionSourceJsonObject>.toMangaExtensionSources(): List<AvailableMangaSources> {
Expand Down Expand Up @@ -196,7 +196,7 @@ internal class ExtensionGithubApi {
}

fun getMangaApkUrl(extension: MangaExtension.Available): String {
return "${extension.repository}/apk/${extension.apkName}"
return "${extension.repository.removeSuffix("index.min.json")}/apk/${extension.apkName}"
}

suspend fun findNovelExtensions(): List<NovelExtension.Available> {
Expand Down Expand Up @@ -282,7 +282,7 @@ internal class ExtensionGithubApi {
}

fun getNovelApkUrl(extension: NovelExtension.Available): String {
return "${extension.repository}/apk/${extension.pkgName}.apk"
return "${extension.repository.removeSuffix("index.min.json")}/apk/${extension.pkgName}.apk"
}

private fun fallbackRepoUrl(repoUrl: String): String? {
Expand Down

0 comments on commit eec8605

Please sign in to comment.