mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-22 10:22:47 +01:00
Komga: Fix invalid URL when fetching details (#638)
This commit is contained in:
parent
b001fbfff3
commit
b2db8f0cb2
@ -1,7 +1,7 @@
|
||||
ext {
|
||||
extName = 'Komga'
|
||||
extClass = '.KomgaFactory'
|
||||
extVersionCode = 51
|
||||
extVersionCode = 52
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user