mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-22 10:22:47 +01:00
ArgosComics: bugfix (#3396)
* Update mangaSubString * Add rateLimit and refactoring latestUpdate * Remove unused import * Remove isNsfw
This commit is contained in:
parent
6cf71d6490
commit
cf7d70ba9e
@ -3,8 +3,7 @@ ext {
|
||||
extClass = '.ArgosComics'
|
||||
themePkg = 'madara'
|
||||
baseUrl = 'https://argoscomics.com'
|
||||
overrideVersionCode = 1
|
||||
isNsfw = true
|
||||
overrideVersionCode = 2
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user