parent
1f0cf4f713
commit
59855e8e37
|
@ -1,10 +1,13 @@
|
|||
package eu.kanade.tachiyomi.extension.es.mangasnosekai
|
||||
|
||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||
import eu.kanade.tachiyomi.network.GET
|
||||
import eu.kanade.tachiyomi.network.interceptor.rateLimitHost
|
||||
import eu.kanade.tachiyomi.source.model.SManga
|
||||
import okhttp3.HttpUrl.Companion.toHttpUrl
|
||||
import okhttp3.Request
|
||||
import org.jsoup.nodes.Document
|
||||
import org.jsoup.nodes.Element
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Locale
|
||||
|
||||
|
@ -20,6 +23,22 @@ class MangasNoSekai : Madara(
|
|||
|
||||
override val useNewChapterEndpoint = true
|
||||
|
||||
override fun popularMangaRequest(page: Int): Request = GET("$baseUrl/${searchPage(page)}?s=&post_type=wp-manga&m_orderby=views", headers)
|
||||
|
||||
override fun popularMangaSelector() = searchMangaSelector()
|
||||
|
||||
override fun popularMangaFromElement(element: Element) = searchMangaFromElement(element)
|
||||
|
||||
override fun latestUpdatesRequest(page: Int): Request = GET("$baseUrl/${searchPage(page)}?s=&post_type=wp-manga&m_orderby=latest", headers)
|
||||
|
||||
override fun latestUpdatesSelector() = searchMangaSelector()
|
||||
|
||||
override fun latestUpdatesFromElement(element: Element) = searchMangaFromElement(element)
|
||||
|
||||
override fun searchPage(page: Int): String {
|
||||
return if (page > 1) "page/$page/" else ""
|
||||
}
|
||||
|
||||
override fun searchMangaNextPageSelector() = "nav.navigation a.next"
|
||||
|
||||
override val mangaDetailsSelectorTitle = "div.summary-content h1.titleManga"
|
||||
|
|
|
@ -289,7 +289,7 @@ class MadaraGenerator : ThemeSourceGenerator {
|
|||
SingleLang("MangaRosie", "https://mangarosie.in", "en", isNsfw = true),
|
||||
SingleLang("MangaRuby.com", "https://mangaruby.com", "en", isNsfw = true, className = "MangaRubyCom"),
|
||||
SingleLang("Mangaryu", "https://mangaryu.com", "en", isNsfw = true),
|
||||
SingleLang("Mangas No Sekai", "https://mangasnosekai.com", "es"),
|
||||
SingleLang("Mangas No Sekai", "https://mangasnosekai.com", "es", overrideVersionCode = 1),
|
||||
SingleLang("Mangas Origines", "https://mangas-origines.xyz", "fr", isNsfw = true, overrideVersionCode = 4),
|
||||
SingleLang("Mangas-Origines.fr", "https://mangas-origines.fr", "fr", className = "MangasOriginesFr"),
|
||||
SingleLang("MangaSco", "https://manhwasco.net", "en", overrideVersionCode = 2),
|
||||
|
|
Loading…
Reference in New Issue