Add Atemporal (#3582)
* Add Atemporal * use cookieinterceptor * trailing newline
This commit is contained in:
parent
7465cbf353
commit
4ed4e369a5
|
@ -0,0 +1,14 @@
|
|||
ext {
|
||||
extName = 'Atemporal'
|
||||
extClass = '.Atemporal'
|
||||
themePkg = 'madara'
|
||||
baseUrl = 'https://atemporal.cloud'
|
||||
overrideVersionCode = 0
|
||||
isNsfw = false
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
||||
dependencies {
|
||||
api(project(":lib:cookieinterceptor"))
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 7.3 KiB |
Binary file not shown.
After Width: | Height: | Size: 3.6 KiB |
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
Binary file not shown.
After Width: | Height: | Size: 42 KiB |
|
@ -0,0 +1,26 @@
|
|||
package eu.kanade.tachiyomi.extension.pt.atemporal
|
||||
|
||||
import eu.kanade.tachiyomi.lib.cookieinterceptor.CookieInterceptor
|
||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||
import okhttp3.HttpUrl.Companion.toHttpUrl
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Locale
|
||||
|
||||
class Atemporal : Madara(
|
||||
"Atemporal",
|
||||
"https://atemporal.cloud",
|
||||
"pt-BR",
|
||||
dateFormat = SimpleDateFormat("d 'de' MMMM 'de' yyyy", Locale("pt", "BR")),
|
||||
) {
|
||||
// Cookie required for search
|
||||
private val cookieInterceptor = CookieInterceptor(baseUrl.toHttpUrl().host, "visited" to "true")
|
||||
|
||||
override val client = network.cloudflareClient.newBuilder()
|
||||
.addNetworkInterceptor(cookieInterceptor)
|
||||
.build()
|
||||
|
||||
override val useLoadMoreRequest = LoadMoreStrategy.Never
|
||||
override val useNewChapterEndpoint = true
|
||||
|
||||
override val mangaDetailsSelectorStatus = "div.summary-heading:contains(Status) + div.summary-content"
|
||||
}
|
Loading…
Reference in New Issue