parent
71e3830576
commit
fd7c47329b
|
@ -3,7 +3,7 @@ ext {
|
||||||
extClass = '.MangasNoSekai'
|
extClass = '.MangasNoSekai'
|
||||||
themePkg = 'madara'
|
themePkg = 'madara'
|
||||||
baseUrl = 'https://mangasnosekai.com'
|
baseUrl = 'https://mangasnosekai.com'
|
||||||
overrideVersionCode = 3
|
overrideVersionCode = 4
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
package eu.kanade.tachiyomi.extension.es.mangasnosekai
|
package eu.kanade.tachiyomi.extension.es.mangasnosekai
|
||||||
|
|
||||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||||
import eu.kanade.tachiyomi.network.GET
|
|
||||||
import eu.kanade.tachiyomi.network.POST
|
import eu.kanade.tachiyomi.network.POST
|
||||||
import eu.kanade.tachiyomi.network.interceptor.rateLimitHost
|
import eu.kanade.tachiyomi.network.interceptor.rateLimitHost
|
||||||
import eu.kanade.tachiyomi.source.model.SChapter
|
import eu.kanade.tachiyomi.source.model.SChapter
|
||||||
import eu.kanade.tachiyomi.source.model.SManga
|
import eu.kanade.tachiyomi.source.model.SManga
|
||||||
import eu.kanade.tachiyomi.util.asJsoup
|
import eu.kanade.tachiyomi.util.asJsoup
|
||||||
import okhttp3.CacheControl
|
|
||||||
import okhttp3.FormBody
|
import okhttp3.FormBody
|
||||||
import okhttp3.HttpUrl.Companion.toHttpUrl
|
import okhttp3.HttpUrl.Companion.toHttpUrl
|
||||||
import okhttp3.Request
|
import okhttp3.Request
|
||||||
|
@ -29,15 +27,7 @@ class MangasNoSekai : Madara(
|
||||||
|
|
||||||
override val useNewChapterEndpoint = true
|
override val useNewChapterEndpoint = true
|
||||||
|
|
||||||
override val mangaSubString = "manganews"
|
override val mangaSubString = "manganewo"
|
||||||
|
|
||||||
override fun popularMangaRequest(page: Int): Request {
|
|
||||||
return GET(
|
|
||||||
url = "$baseUrl/$mangaSubString/${searchPage(page)}?m_orderby=views",
|
|
||||||
headers = headers,
|
|
||||||
cache = CacheControl.FORCE_NETWORK,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun popularMangaSelector() = "div.page-listing-item > div.row > div"
|
override fun popularMangaSelector() = "div.page-listing-item > div.row > div"
|
||||||
|
|
||||||
|
@ -63,14 +53,6 @@ class MangasNoSekai : Madara(
|
||||||
return manga
|
return manga
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun latestUpdatesRequest(page: Int): Request {
|
|
||||||
return GET(
|
|
||||||
url = "$baseUrl/$mangaSubString/${searchPage(page)}?m_orderby=latest",
|
|
||||||
headers = headers,
|
|
||||||
cache = CacheControl.FORCE_NETWORK,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun searchPage(page: Int): String {
|
override fun searchPage(page: Int): String {
|
||||||
return if (page > 1) "page/$page/" else ""
|
return if (page > 1) "page/$page/" else ""
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue