Komga: Fix invalid URL when fetching details (#638)

This commit is contained in:
beerpsi 2024-01-26 01:37:40 +07:00 committed by GitHub
parent b001fbfff3
commit b2db8f0cb2
2 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'Komga'
extClass = '.KomgaFactory'
extVersionCode = 51
extVersionCode = 52
}
apply from: "$rootDir/common.gradle"

View File

@ -215,6 +215,8 @@ open class Komga(private val suffix: String = "") : ConfigurableSource, Unmetere
override fun getMangaUrl(manga: SManga) = manga.url.replace("/api/v1", "")
override fun mangaDetailsRequest(manga: SManga) = GET(manga.url)
override fun mangaDetailsParse(response: Response): SManga {
return if (response.fromReadList()) {
response.parseAs<ReadListDto>().toSManga()