MNS: Fix popular and latest tabs (#1314)

Fix popular and latest
This commit is contained in:
bapeey 2024-02-16 23:09:59 -05:00 committed by Draff
parent 71e3830576
commit fd7c47329b
2 changed files with 2 additions and 20 deletions

View File

@ -3,7 +3,7 @@ ext {
extClass = '.MangasNoSekai'
themePkg = 'madara'
baseUrl = 'https://mangasnosekai.com'
overrideVersionCode = 3
overrideVersionCode = 4
}
apply from: "$rootDir/common.gradle"

View File

@ -1,13 +1,11 @@
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.POST
import eu.kanade.tachiyomi.network.interceptor.rateLimitHost
import eu.kanade.tachiyomi.source.model.SChapter
import eu.kanade.tachiyomi.source.model.SManga
import eu.kanade.tachiyomi.util.asJsoup
import okhttp3.CacheControl
import okhttp3.FormBody
import okhttp3.HttpUrl.Companion.toHttpUrl
import okhttp3.Request
@ -29,15 +27,7 @@ class MangasNoSekai : Madara(
override val useNewChapterEndpoint = true
override val mangaSubString = "manganews"
override fun popularMangaRequest(page: Int): Request {
return GET(
url = "$baseUrl/$mangaSubString/${searchPage(page)}?m_orderby=views",
headers = headers,
cache = CacheControl.FORCE_NETWORK,
)
}
override val mangaSubString = "manganewo"
override fun popularMangaSelector() = "div.page-listing-item > div.row > div"
@ -63,14 +53,6 @@ class MangasNoSekai : Madara(
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 {
return if (page > 1) "page/$page/" else ""
}