Add AncientComics (#3687)

This commit is contained in:
Chopper 2024-06-22 04:33:50 -03:00 committed by Draff
parent 15f0c1ff34
commit d6512ee2f5
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
7 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,9 @@
ext {
extName = 'Ancient Comics'
extClass = '.AncientComics'
themePkg = 'mangathemesia'
baseUrl = 'https://ancientcomics.com.br'
overrideVersionCode = 0
}
apply from: "$rootDir/common.gradle"

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 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: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

View File

@ -0,0 +1,34 @@
package eu.kanade.tachiyomi.extension.pt.ancientcomics
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.network.interceptor.rateLimit
import eu.kanade.tachiyomi.source.model.FilterList
import okhttp3.HttpUrl.Companion.toHttpUrl
import okhttp3.OkHttpClient
import okhttp3.Request
import java.text.SimpleDateFormat
import java.util.Locale
class AncientComics : MangaThemesia(
"Ancient Comics",
"https://ancientcomics.com.br",
"pt-BR",
dateFormat = SimpleDateFormat("MMM dd, yyyy", Locale("pt", "BR")),
) {
override val client: OkHttpClient = super.client.newBuilder()
.rateLimit(2)
.build()
override val hasProjectPage = true
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
if (query.isBlank()) return super.searchMangaRequest(page, query, filters)
val url = baseUrl.toHttpUrl().newBuilder()
.addQueryParameter("s", query)
.build()
return GET(url, headers)
}
}