ArgosComics: bugfix (#3396)

* Update mangaSubString

* Add rateLimit and refactoring latestUpdate

* Remove unused import

* Remove isNsfw
This commit is contained in:
Chopper 2024-06-04 02:28:27 -03:00 committed by GitHub
parent 6cf71d6490
commit cf7d70ba9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 8 deletions

View File

@ -3,8 +3,7 @@ ext {
extClass = '.ArgosComics'
themePkg = 'madara'
baseUrl = 'https://argoscomics.com'
overrideVersionCode = 1
isNsfw = true
overrideVersionCode = 2
}
apply from: "$rootDir/common.gradle"

View File

@ -1,8 +1,7 @@
package eu.kanade.tachiyomi.extension.pt.argoscomics
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.network.GET
import okhttp3.Request
import eu.kanade.tachiyomi.network.interceptor.rateLimit
import java.text.SimpleDateFormat
import java.util.Locale
@ -12,9 +11,9 @@ class ArgosComics : Madara(
"pt-BR",
SimpleDateFormat("MMMMM dd, yyyy", Locale("pt", "BR")),
) {
override fun latestUpdatesSelector() = "div.wp-block-wp-manga-gutenberg-manga-sliders-block:nth-child(2)"
override val mangaSubString = "comics"
override fun latestUpdatesRequest(page: Int): Request = GET(baseUrl, headers)
override fun latestUpdatesNextPageSelector() = null
override val client = super.client.newBuilder()
.rateLimit(3)
.build()
}