MaidScan: fix loading content (#9133)

Fix
This commit is contained in:
Chopper 2025-06-07 23:53:38 -03:00 committed by Draff
parent 62bfe372b2
commit 31e167dd72
Signed by: Draff
GPG Key ID: E8A89F3211677653
4 changed files with 12 additions and 3 deletions

View File

@ -2,4 +2,4 @@ plugins {
id("lib-multisrc")
}
baseVersionCode = 3
baseVersionCode = 4

View File

@ -203,7 +203,7 @@ abstract class GreenShit(
when (contentOrigin) {
ContentOrigin.Mobile -> chapterListParseMobile(response)
else -> chapterListParseWeb(response)
}
}.distinctBy(SChapter::url)
private fun chapterListParseMobile(response: Response): List<SChapter> =
response.parseAs<ResultDto<WrapperChapterDto>>().toSChapterList()

View File

@ -3,7 +3,7 @@ ext {
extClass = '.MaidScan'
themePkg = 'greenshit'
baseUrl = 'https://novo.empreguetes.site'
overrideVersionCode = 45
overrideVersionCode = 46
isNsfw = true
}

View File

@ -1,8 +1,10 @@
package eu.kanade.tachiyomi.extension.pt.maidscan
import eu.kanade.tachiyomi.multisrc.greenshit.GreenShit
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.network.interceptor.rateLimit
import okhttp3.OkHttpClient
import java.util.concurrent.TimeUnit
class MaidScan : GreenShit(
"Maid Scan",
@ -12,7 +14,14 @@ class MaidScan : GreenShit(
) {
override val targetAudience = TargetAudience.Shoujo
override val contentOrigin: ContentOrigin = ContentOrigin.Mobile
override val client: OkHttpClient = super.client.newBuilder()
.connectTimeout(1, TimeUnit.MINUTES)
.readTimeout(1, TimeUnit.MINUTES)
.rateLimit(2)
.build()
override fun popularMangaRequest(page: Int) =
GET("$apiUrl/obras/ranking?periodo=geral&limite=5&gen_id=$targetAudience", headers)
}