Add Atemporal (#3582)
* Add Atemporal * use cookieinterceptor * trailing newline
This commit is contained in:
parent
7465cbf353
commit
4ed4e369a5
14
src/pt/atemporal/build.gradle
Normal file
14
src/pt/atemporal/build.gradle
Normal 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"))
|
||||||
|
}
|
BIN
src/pt/atemporal/res/mipmap-hdpi/ic_launcher.png
Normal file
BIN
src/pt/atemporal/res/mipmap-hdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.3 KiB |
BIN
src/pt/atemporal/res/mipmap-mdpi/ic_launcher.png
Normal file
BIN
src/pt/atemporal/res/mipmap-mdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.6 KiB |
BIN
src/pt/atemporal/res/mipmap-xhdpi/ic_launcher.png
Normal file
BIN
src/pt/atemporal/res/mipmap-xhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
BIN
src/pt/atemporal/res/mipmap-xxhdpi/ic_launcher.png
Normal file
BIN
src/pt/atemporal/res/mipmap-xxhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
BIN
src/pt/atemporal/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
BIN
src/pt/atemporal/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
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…
x
Reference in New Issue
Block a user