remove more Dead sites (#4635)
* remove bakaman * remove dessertscan * remove housemanga/visormanga * remove lectorunitoon.com * remove mangaoku * remove manhuako * remove wiemanga
|
@ -1,7 +0,0 @@
|
|||
ext {
|
||||
extName = 'WieManga'
|
||||
extClass = '.WieManga'
|
||||
extVersionCode = 5
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
Before Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 7.9 KiB |
Before Width: | Height: | Size: 10 KiB |
|
@ -1,137 +0,0 @@
|
|||
package eu.kanade.tachiyomi.extension.de.wiemanga
|
||||
|
||||
import eu.kanade.tachiyomi.network.GET
|
||||
import eu.kanade.tachiyomi.source.model.FilterList
|
||||
import eu.kanade.tachiyomi.source.model.Page
|
||||
import eu.kanade.tachiyomi.source.model.SChapter
|
||||
import eu.kanade.tachiyomi.source.model.SManga
|
||||
import eu.kanade.tachiyomi.source.online.ParsedHttpSource
|
||||
import okhttp3.Headers
|
||||
import okhttp3.OkHttpClient
|
||||
import okhttp3.Request
|
||||
import org.jsoup.nodes.Document
|
||||
import org.jsoup.nodes.Element
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Locale
|
||||
|
||||
class WieManga : ParsedHttpSource() {
|
||||
|
||||
override val id: Long = 10
|
||||
|
||||
override val name = "Wie Manga!"
|
||||
|
||||
override val baseUrl = "https://www.wiemanga.com"
|
||||
|
||||
override val lang = "de"
|
||||
|
||||
override val supportsLatest = true
|
||||
|
||||
override val client: OkHttpClient = network.cloudflareClient
|
||||
|
||||
override fun headersBuilder(): Headers.Builder = super.headersBuilder()
|
||||
.add("Accept-Language", "en-US,en;q=0.5")
|
||||
.add("Referer", baseUrl)
|
||||
|
||||
override fun popularMangaSelector() = ".booklist td > div"
|
||||
|
||||
override fun latestUpdatesSelector() = ".booklist td > div"
|
||||
|
||||
override fun popularMangaRequest(page: Int): Request {
|
||||
return GET("$baseUrl/list/Hot-Book/", headers)
|
||||
}
|
||||
|
||||
override fun latestUpdatesRequest(page: Int): Request {
|
||||
return GET("$baseUrl/list/New-Update/", headers)
|
||||
}
|
||||
|
||||
override fun popularMangaFromElement(element: Element): SManga {
|
||||
val manga = SManga.create()
|
||||
|
||||
element.select("dd a:first-child").let {
|
||||
manga.setUrlWithoutDomain(it.attr("href"))
|
||||
manga.title = it.text()
|
||||
}
|
||||
manga.thumbnail_url = element.select("dt img").attr("abs:src")
|
||||
|
||||
return manga
|
||||
}
|
||||
|
||||
override fun latestUpdatesFromElement(element: Element): SManga = popularMangaFromElement(element)
|
||||
|
||||
override fun popularMangaNextPageSelector(): String? = null
|
||||
|
||||
override fun latestUpdatesNextPageSelector(): String? = null
|
||||
|
||||
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
|
||||
return GET("$baseUrl/search/?wd=$query", headers)
|
||||
}
|
||||
|
||||
override fun searchMangaSelector() = ".searchresult td > div"
|
||||
|
||||
override fun searchMangaFromElement(element: Element): SManga {
|
||||
val manga = SManga.create()
|
||||
|
||||
element.select(".resultbookname").let {
|
||||
manga.setUrlWithoutDomain(it.attr("href"))
|
||||
manga.title = it.text()
|
||||
}
|
||||
manga.thumbnail_url = element.select(".resultimg img").attr("abs:src")
|
||||
|
||||
return manga
|
||||
}
|
||||
|
||||
override fun searchMangaNextPageSelector() = ".pagetor a.l"
|
||||
|
||||
override fun mangaDetailsParse(document: Document): SManga {
|
||||
val manga = SManga.create()
|
||||
|
||||
document.select("div.bookmessgae").let { details ->
|
||||
manga.author = details.select("dd:contains(Autor:) a").text()
|
||||
manga.artist = details.select("dd:contains(Zeichner:) a").text()
|
||||
manga.genre = details.select("dd:contains(Genre:) a").joinToString { it.text() }
|
||||
manga.description = details.select("dt").first()?.ownText()
|
||||
manga.thumbnail_url = details.select("div.bookfrontpage img").attr("abs:src")
|
||||
manga.status = parseStatus(details.select("dd:contains(Status:) a").text())
|
||||
}
|
||||
|
||||
return manga
|
||||
}
|
||||
|
||||
private fun parseStatus(status: String?) = when {
|
||||
status == null -> SManga.UNKNOWN
|
||||
status.contains("ongoing", ignoreCase = true) -> SManga.ONGOING
|
||||
status.contains("finished", ignoreCase = true) -> SManga.COMPLETED
|
||||
else -> SManga.UNKNOWN
|
||||
}
|
||||
|
||||
override fun chapterListSelector() = ".chapterlist tr:not(:first-child)"
|
||||
|
||||
override fun chapterFromElement(element: Element): SChapter {
|
||||
val chapter = SChapter.create()
|
||||
|
||||
element.select(".col1 a").first()!!.let {
|
||||
chapter.setUrlWithoutDomain(it.attr("href"))
|
||||
chapter.name = it.text()
|
||||
}
|
||||
chapter.date_upload = element.select(".col3 a").first()?.text()?.let { parseChapterDate(it) } ?: 0
|
||||
|
||||
return chapter
|
||||
}
|
||||
|
||||
private fun parseChapterDate(date: String): Long {
|
||||
return SimpleDateFormat("yyyy-MM-dd hh:mm:ss", Locale.getDefault()).parse(date)?.time ?: 0L
|
||||
}
|
||||
|
||||
override fun pageListParse(document: Document): List<Page> {
|
||||
val pages = mutableListOf<Page>()
|
||||
|
||||
document.select("select#page").first()!!.select("option").forEach {
|
||||
pages.add(Page(pages.size, it.attr("value")))
|
||||
}
|
||||
return pages
|
||||
}
|
||||
|
||||
override fun imageUrlParse(document: Document): String {
|
||||
return document.select("img#comicpic").first()!!.attr("abs:src")
|
||||
}
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
ext {
|
||||
extName = 'Visor Mangas'
|
||||
extClass = '.VisorMangas'
|
||||
themePkg = 'madara'
|
||||
baseUrl = 'https://visormanga.xyz'
|
||||
overrideVersionCode = 1
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
Before Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 8.1 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 23 KiB |
|
@ -1,23 +0,0 @@
|
|||
package eu.kanade.tachiyomi.extension.es.housemangas
|
||||
|
||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||
import eu.kanade.tachiyomi.network.interceptor.rateLimit
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Locale
|
||||
import java.util.concurrent.TimeUnit
|
||||
|
||||
class VisorMangas : Madara(
|
||||
"Visor Mangas",
|
||||
"https://visormanga.xyz",
|
||||
"es",
|
||||
dateFormat = SimpleDateFormat("dd 'de' MMMM 'de' yyyy", Locale("es")),
|
||||
) {
|
||||
override val client = super.client.newBuilder()
|
||||
.rateLimit(2, 1, TimeUnit.SECONDS)
|
||||
.build()
|
||||
|
||||
override val useNewChapterEndpoint = true
|
||||
override val useLoadMoreRequest = LoadMoreStrategy.Always
|
||||
|
||||
override val popularMangaUrlSelector = "div.post-title a[href^=$baseUrl]"
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
ext {
|
||||
extName = 'ManhuaKO'
|
||||
extClass = '.ManhuaKO'
|
||||
extVersionCode = 1
|
||||
isNsfw = false
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 7.4 KiB |
|
@ -1,182 +0,0 @@
|
|||
package eu.kanade.tachiyomi.extension.es.manhuako
|
||||
|
||||
import eu.kanade.tachiyomi.network.GET
|
||||
import eu.kanade.tachiyomi.network.interceptor.rateLimitHost
|
||||
import eu.kanade.tachiyomi.source.model.Filter
|
||||
import eu.kanade.tachiyomi.source.model.FilterList
|
||||
import eu.kanade.tachiyomi.source.model.Page
|
||||
import eu.kanade.tachiyomi.source.model.SChapter
|
||||
import eu.kanade.tachiyomi.source.model.SManga
|
||||
import eu.kanade.tachiyomi.source.online.ParsedHttpSource
|
||||
import eu.kanade.tachiyomi.util.asJsoup
|
||||
import okhttp3.HttpUrl.Companion.toHttpUrl
|
||||
import okhttp3.Request
|
||||
import okhttp3.Response
|
||||
import org.jsoup.nodes.Document
|
||||
import org.jsoup.nodes.Element
|
||||
import org.jsoup.select.Elements
|
||||
import java.util.Calendar
|
||||
|
||||
class ManhuaKO : ParsedHttpSource() {
|
||||
|
||||
override val baseUrl = "https://manhuako.com"
|
||||
|
||||
override val lang = "es"
|
||||
|
||||
override val name = "ManhuaKO"
|
||||
|
||||
override val supportsLatest = true
|
||||
|
||||
override val client = network.cloudflareClient.newBuilder()
|
||||
.rateLimitHost(baseUrl.toHttpUrl(), 2)
|
||||
.build()
|
||||
|
||||
override fun headersBuilder() = super.headersBuilder()
|
||||
.add("Referer", "$baseUrl/")
|
||||
|
||||
override fun popularMangaRequest(page: Int) = GET(baseUrl, headers)
|
||||
|
||||
override fun popularMangaSelector() =
|
||||
"div#Manhua-week .my-carousel-item, div#Manhwa-week .my-carousel-item, div#Manga-week .my-carousel-item"
|
||||
|
||||
override fun popularMangaNextPageSelector(): String? = null
|
||||
|
||||
override fun popularMangaFromElement(element: Element) = SManga.create().apply {
|
||||
with(element.selectFirst("> a")!!) {
|
||||
setUrlWithoutDomain(attr("href"))
|
||||
title = selectFirst("img")!!.attr("title")
|
||||
thumbnail_url = selectFirst("img")!!.imgAttr()
|
||||
}
|
||||
}
|
||||
|
||||
override fun latestUpdatesRequest(page: Int) = GET(baseUrl, headers)
|
||||
|
||||
override fun latestUpdatesSelector() =
|
||||
"div#Manhua-recent .my-carousel-item, div#Manhwa-recent .my-carousel-item, div#Manga-recent .my-carousel-item"
|
||||
|
||||
override fun latestUpdatesNextPageSelector(): String? = null
|
||||
|
||||
override fun latestUpdatesFromElement(element: Element) = popularMangaFromElement(element)
|
||||
|
||||
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
|
||||
val urlBuilder = baseUrl.toHttpUrl().newBuilder()
|
||||
|
||||
if (query.isNotBlank()) {
|
||||
urlBuilder.addPathSegment("home")
|
||||
urlBuilder.addPathSegment("search")
|
||||
urlBuilder.addQueryParameter("mq", query)
|
||||
} else {
|
||||
filters.forEach { filter ->
|
||||
when (filter) {
|
||||
is TypeFilter -> {
|
||||
if (filter.state == 0) {
|
||||
urlBuilder.addPathSegment("home")
|
||||
urlBuilder.addPathSegment("search")
|
||||
} else {
|
||||
urlBuilder.addPathSegment(filter.toUriPart())
|
||||
}
|
||||
}
|
||||
is GenreFilter -> {
|
||||
if (filter.state != 0) {
|
||||
urlBuilder.addPathSegment("genre")
|
||||
urlBuilder.addPathSegment(filter.toUriPart())
|
||||
}
|
||||
}
|
||||
else -> {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
urlBuilder.addPathSegment("page")
|
||||
urlBuilder.addPathSegment(page.toString())
|
||||
|
||||
return GET(urlBuilder.build(), headers)
|
||||
}
|
||||
|
||||
override fun getFilterList(): FilterList {
|
||||
return FilterList(
|
||||
Filter.Header("Los filtros serán ignorados si se realiza una búsqueda por texto"),
|
||||
Filter.Separator(),
|
||||
TypeFilter(),
|
||||
GenreFilter(),
|
||||
)
|
||||
}
|
||||
|
||||
override fun searchMangaSelector() = "div.card-image"
|
||||
|
||||
override fun searchMangaNextPageSelector() = "ul.pagination li.active + li"
|
||||
|
||||
override fun searchMangaFromElement(element: Element) = popularMangaFromElement(element)
|
||||
|
||||
override fun mangaDetailsParse(document: Document) = SManga.create().apply {
|
||||
title = document.select("section > div.container > h1.center-align").text()
|
||||
genre = document.select("div.card-panel div:has(> span:contains(Genero)) a.chip").joinToString { it.ownText() }
|
||||
description = document.select("div.card-panel p").text()
|
||||
thumbnail_url = document.select("section > div.container img#preview.fit-img").imgAttr()
|
||||
author = document.selectFirst("div.card-panel div:has(> span:contains(Creador)) > a")!!.ownText()
|
||||
}
|
||||
|
||||
override fun chapterListSelector() = "table.table-chapters tr"
|
||||
|
||||
private fun chapterListNextPageSelector() = "ul.pagination li i:contains(last_page), ul.pagination li.active + li"
|
||||
|
||||
override fun chapterListParse(response: Response): List<SChapter> {
|
||||
val url = response.request.url.toString()
|
||||
var document = response.asJsoup()
|
||||
|
||||
val chapters = mutableListOf<SChapter>()
|
||||
chapters.addAll(document.select(chapterListSelector()).map { chapterFromElement(it) })
|
||||
|
||||
var page = 2
|
||||
while (!document.select(chapterListNextPageSelector()).isEmpty()) {
|
||||
document = client.newCall(GET("$url/page/$page", headers)).execute().asJsoup()
|
||||
chapters.addAll(document.select(chapterListSelector()).map { chapterFromElement(it) })
|
||||
page++
|
||||
}
|
||||
return chapters
|
||||
}
|
||||
|
||||
override fun chapterFromElement(element: Element) = SChapter.create().apply {
|
||||
name = "Capítulo " + element.select("a").text()
|
||||
date_upload = parseRelativeDate(element.selectFirst("span.truncate")!!.ownText())
|
||||
setUrlWithoutDomain(element.select("a").attr("href"))
|
||||
}
|
||||
|
||||
override fun pageListParse(document: Document): List<Page> {
|
||||
return document.select("div#pantallaCompleta img").mapIndexed { i, img ->
|
||||
Page(i, imageUrl = img.imgAttr())
|
||||
}
|
||||
}
|
||||
|
||||
override fun imageUrlParse(document: Document) = throw UnsupportedOperationException()
|
||||
|
||||
private fun Element.imgAttr(): String {
|
||||
return when {
|
||||
hasAttr("data-src") -> attr("abs:data-src")
|
||||
hasAttr("data-lazy-src") -> attr("abs:data-lazy-src")
|
||||
else -> attr("abs:src")
|
||||
}
|
||||
}
|
||||
|
||||
private fun Elements.imgAttr() = this.first()!!.imgAttr()
|
||||
|
||||
private fun parseRelativeDate(date: String): Long {
|
||||
val number = Regex("""(\d+)""").find(date)?.value?.toIntOrNull() ?: return 0
|
||||
val cal = Calendar.getInstance()
|
||||
|
||||
return when {
|
||||
WordSet("segundo").anyWordIn(date) -> cal.apply { add(Calendar.SECOND, -number) }.timeInMillis
|
||||
WordSet("minuto").anyWordIn(date) -> cal.apply { add(Calendar.MINUTE, -number) }.timeInMillis
|
||||
WordSet("hora").anyWordIn(date) -> cal.apply { add(Calendar.HOUR, -number) }.timeInMillis
|
||||
WordSet("día").anyWordIn(date) -> cal.apply { add(Calendar.DAY_OF_MONTH, -number) }.timeInMillis
|
||||
WordSet("semana").anyWordIn(date) -> cal.apply { add(Calendar.DAY_OF_MONTH, -number * 7) }.timeInMillis
|
||||
WordSet("mes").anyWordIn(date) -> cal.apply { add(Calendar.MONTH, -number) }.timeInMillis
|
||||
WordSet("año").anyWordIn(date) -> cal.apply { add(Calendar.YEAR, -number) }.timeInMillis
|
||||
else -> 0
|
||||
}
|
||||
}
|
||||
|
||||
class WordSet(private vararg val words: String) {
|
||||
fun anyWordIn(dateString: String): Boolean = words.any { dateString.contains(it, ignoreCase = true) }
|
||||
}
|
||||
}
|
|
@ -1,53 +0,0 @@
|
|||
package eu.kanade.tachiyomi.extension.es.manhuako
|
||||
|
||||
import eu.kanade.tachiyomi.source.model.Filter
|
||||
|
||||
class TypeFilter : UriPartFilter(
|
||||
"Tipo",
|
||||
arrayOf(
|
||||
Pair("Todos", "home"),
|
||||
Pair("Mangas", "manga"),
|
||||
Pair("Manhuas", "manhua"),
|
||||
Pair("Manhwas", "manhwa"),
|
||||
),
|
||||
)
|
||||
|
||||
class GenreFilter : UriPartFilter(
|
||||
"Géneros",
|
||||
arrayOf(
|
||||
Pair("Todos", ""),
|
||||
Pair("Accion", "accion"),
|
||||
Pair("Harem", "harem"),
|
||||
Pair("Cultivo", "cultivo"),
|
||||
Pair("Romance", "romance"),
|
||||
Pair("Aventura", "aventura"),
|
||||
Pair("Isekai", "isekai"),
|
||||
Pair("Escolar", "escolar"),
|
||||
Pair("Artes Marciales", "artes-marciales"),
|
||||
Pair("Sistema", "sistema"),
|
||||
Pair("Fantasia", "fantasia"),
|
||||
Pair("Apocaliptico", "apocaliptico"),
|
||||
Pair("Sobrenatural", "sobrenatural"),
|
||||
Pair("Supervivencia", "supervivencia"),
|
||||
Pair("Manhua", "manhua"),
|
||||
Pair("Manga", "manga"),
|
||||
Pair("Manhwa", "manhwa"),
|
||||
Pair("Ecchi", "ecchi"),
|
||||
Pair("Gore", "gore"),
|
||||
Pair("Terror", "terror"),
|
||||
Pair("Suspenso", "suspenso"),
|
||||
Pair("Magia", "magia"),
|
||||
Pair("Psicologico", "psicologico"),
|
||||
Pair("Recuentos de la vida", "recuentos-de-la-vida"),
|
||||
Pair("Drama", "drama"),
|
||||
Pair("Comedia", "comedia"),
|
||||
Pair("Shonen", "shonen"),
|
||||
Pair("Josei", "josei"),
|
||||
Pair("Seinen", "seinen"),
|
||||
),
|
||||
)
|
||||
|
||||
open class UriPartFilter(displayName: String, val vals: Array<Pair<String, String>>) :
|
||||
Filter.Select<String>(displayName, vals.map { it.first }.toTypedArray()) {
|
||||
fun toUriPart() = vals[state].second
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
ext {
|
||||
extName = 'Unitoon'
|
||||
extClass = '.Unitoon'
|
||||
themePkg = 'madara'
|
||||
baseUrl = 'https://lectorunitoon.com'
|
||||
overrideVersionCode = 0
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
Before Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 32 KiB |
|
@ -1,19 +0,0 @@
|
|||
package eu.kanade.tachiyomi.extension.es.unitoon
|
||||
|
||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||
import eu.kanade.tachiyomi.network.interceptor.rateLimit
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Locale
|
||||
|
||||
class Unitoon : Madara(
|
||||
"Unitoon",
|
||||
"https://lectorunitoon.com",
|
||||
"es",
|
||||
SimpleDateFormat("dd/MM/yyyy", Locale("es")),
|
||||
) {
|
||||
override val client = super.client.newBuilder()
|
||||
.rateLimit(2, 1)
|
||||
.build()
|
||||
|
||||
override val useNewChapterEndpoint = true
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
ext {
|
||||
extName = 'Dessert Scan'
|
||||
extClass = '.DessertScan'
|
||||
themePkg = 'madara'
|
||||
baseUrl = 'https://cabaredowatame.site'
|
||||
overrideVersionCode = 0
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
Before Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 16 KiB |
|
@ -1,20 +0,0 @@
|
|||
package eu.kanade.tachiyomi.extension.pt.dessertscan
|
||||
|
||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||
import eu.kanade.tachiyomi.network.interceptor.rateLimit
|
||||
import okhttp3.OkHttpClient
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Locale
|
||||
import java.util.concurrent.TimeUnit
|
||||
|
||||
class DessertScan : Madara(
|
||||
"Dessert Scan",
|
||||
"https://cabaredowatame.site",
|
||||
"pt-BR",
|
||||
SimpleDateFormat("dd/MM/yyyy", Locale("pt", "BR")),
|
||||
) {
|
||||
|
||||
override val client: OkHttpClient = super.client.newBuilder()
|
||||
.rateLimit(1, 2, TimeUnit.SECONDS)
|
||||
.build()
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
ext {
|
||||
extName = 'Bakaman'
|
||||
extClass = '.Bakaman'
|
||||
themePkg = 'madara'
|
||||
baseUrl = 'https://bakaman.net'
|
||||
overrideVersionCode = 2
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
Before Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 17 KiB |
|
@ -1,5 +0,0 @@
|
|||
package eu.kanade.tachiyomi.extension.th.bakaman
|
||||
|
||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||
|
||||
class Bakaman : Madara("Bakaman", "https://bakaman.net", "th")
|
|
@ -1,10 +0,0 @@
|
|||
ext {
|
||||
extName = 'Manga Oku'
|
||||
extClass = '.MangaOku'
|
||||
themePkg = 'madara'
|
||||
baseUrl = 'https://mangaoku.info'
|
||||
overrideVersionCode = 0
|
||||
isNsfw = false
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
Before Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 49 KiB |
|
@ -1,26 +0,0 @@
|
|||
package eu.kanade.tachiyomi.extension.tr.mangaoku
|
||||
|
||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||
import org.jsoup.nodes.Element
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Locale
|
||||
|
||||
class MangaOku : Madara(
|
||||
"Manga Oku",
|
||||
"https://mangaoku.info",
|
||||
"tr",
|
||||
dateFormat = SimpleDateFormat("d MMMM yyyy", Locale("tr")),
|
||||
) {
|
||||
override val mangaDetailsSelectorAuthor = ".manga-authors > a"
|
||||
override val mangaDetailsSelectorDescription = ".manga-summary p"
|
||||
override val mangaDetailsSelectorThumbnail = "head meta[property='og:image']" // Same as browse
|
||||
|
||||
override val useNewChapterEndpoint = true
|
||||
|
||||
override val mangaSubString = "seri"
|
||||
|
||||
override fun imageFromElement(element: Element): String? {
|
||||
return super.imageFromElement(element)?.takeIf { it.isNotEmpty() }
|
||||
?: element.attr("content") // Thumbnail from <head>
|
||||
}
|
||||
}
|