Reaper Scans: fix covers and date (#4382)

This commit is contained in:
AwkwardPeak7 2024-08-02 17:17:45 +05:00 committed by Draff
parent 7a4fa5d46a
commit 1a1566be23
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
3 changed files with 10 additions and 3 deletions

View File

@ -2,7 +2,7 @@ plugins {
id("lib-multisrc")
}
baseVersionCode = 25
baseVersionCode = 26
dependencies {
api(project(":lib:i18n"))

View File

@ -208,7 +208,7 @@ abstract class HeanCms(
val result = json.parseAs<HeanCmsQuerySearchDto>()
val mangaList = result.data.map {
it.toSManga(apiUrl, coverPath, mangaSubDirectory)
it.toSManga(cdnUrl, coverPath, mangaSubDirectory)
}
return MangasPage(mangaList, result.meta?.hasNextPage() ?: false)

View File

@ -1,14 +1,21 @@
package eu.kanade.tachiyomi.extension.en.reaperscans
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") {
override val versionId = 3
override val client = super.client.newBuilder()
.rateLimit(1)
.build()
override val useNewChapterEndpoint = true
override val useNewQueryEndpoint = 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"
}