mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-25 03:33:24 +01:00
HeanCMS: Replace mangaDetails endpoint and enable login in TempleScan (#4226)
* fix mangadetails * temple now has paid chapters
This commit is contained in:
parent
c2b183be66
commit
46432d99a3
@ -2,7 +2,7 @@ plugins {
|
||||
id("lib-multisrc")
|
||||
}
|
||||
|
||||
baseVersionCode = 24
|
||||
baseVersionCode = 25
|
||||
|
||||
dependencies {
|
||||
api(project(":lib:i18n"))
|
||||
|
@ -225,13 +225,13 @@ abstract class HeanCms(
|
||||
throw Exception(intl.format("url_changed_error", name, name))
|
||||
}
|
||||
|
||||
val seriesId = manga.url.substringAfterLast("#")
|
||||
val seriesSlug = manga.url.substringAfterLast("/").substringBefore("#")
|
||||
|
||||
val apiHeaders = headersBuilder()
|
||||
.add("Accept", ACCEPT_JSON)
|
||||
.build()
|
||||
|
||||
return GET("$apiUrl/series/id/$seriesId", apiHeaders)
|
||||
return GET("$apiUrl/series/$seriesSlug", apiHeaders)
|
||||
}
|
||||
|
||||
override fun mangaDetailsParse(response: Response): SManga {
|
||||
|
@ -17,4 +17,6 @@ class TempleScan : HeanCms(
|
||||
.build()
|
||||
|
||||
override val mangaSubDirectory = "comic"
|
||||
|
||||
override val enableLogin = true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user