Reaper Scans: fix covers and date (#4382)
This commit is contained in:
parent
7a4fa5d46a
commit
1a1566be23
|
@ -2,7 +2,7 @@ plugins {
|
||||||
id("lib-multisrc")
|
id("lib-multisrc")
|
||||||
}
|
}
|
||||||
|
|
||||||
baseVersionCode = 25
|
baseVersionCode = 26
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api(project(":lib:i18n"))
|
api(project(":lib:i18n"))
|
||||||
|
|
|
@ -208,7 +208,7 @@ abstract class HeanCms(
|
||||||
|
|
||||||
val result = json.parseAs<HeanCmsQuerySearchDto>()
|
val result = json.parseAs<HeanCmsQuerySearchDto>()
|
||||||
val mangaList = result.data.map {
|
val mangaList = result.data.map {
|
||||||
it.toSManga(apiUrl, coverPath, mangaSubDirectory)
|
it.toSManga(cdnUrl, coverPath, mangaSubDirectory)
|
||||||
}
|
}
|
||||||
|
|
||||||
return MangasPage(mangaList, result.meta?.hasNextPage() ?: false)
|
return MangasPage(mangaList, result.meta?.hasNextPage() ?: false)
|
||||||
|
|
|
@ -1,14 +1,21 @@
|
||||||
package eu.kanade.tachiyomi.extension.en.reaperscans
|
package eu.kanade.tachiyomi.extension.en.reaperscans
|
||||||
|
|
||||||
import eu.kanade.tachiyomi.multisrc.heancms.HeanCms
|
import eu.kanade.tachiyomi.multisrc.heancms.HeanCms
|
||||||
|
import eu.kanade.tachiyomi.network.interceptor.rateLimit
|
||||||
|
import java.text.SimpleDateFormat
|
||||||
|
import java.util.Locale
|
||||||
|
|
||||||
class ReaperScans : HeanCms("Reaper Scans", "https://reaperscans.com", "en") {
|
class ReaperScans : HeanCms("Reaper Scans", "https://reaperscans.com", "en") {
|
||||||
|
|
||||||
override val versionId = 3
|
override val versionId = 3
|
||||||
|
|
||||||
|
override val client = super.client.newBuilder()
|
||||||
|
.rateLimit(1)
|
||||||
|
.build()
|
||||||
|
|
||||||
override val useNewChapterEndpoint = true
|
override val useNewChapterEndpoint = true
|
||||||
override val useNewQueryEndpoint = true
|
override val useNewQueryEndpoint = true
|
||||||
override val enableLogin = true
|
override val enableLogin = true
|
||||||
|
override val dateFormat = SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", Locale.US)
|
||||||
override val cdnUrl = "https://media.reaperscans.com/file/4SRBHm"
|
override val cdnUrl = "https://media.reaperscans.com/file/4SRBHm"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue