Add Atemporal (#3582)

* Add Atemporal

* use cookieinterceptor

* trailing newline
This commit is contained in:
Vetle Ledaal 2024-06-17 14:32:05 +02:00 committed by Draff
parent 7465cbf353
commit 4ed4e369a5
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
7 changed files with 40 additions and 0 deletions

View File

@ -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

View File

@ -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"
}