Manga1000: Fix Chapter list and Manga details issue (#1094)

* Manga1000:Fix the chapter list for some manga cannot be found.

* Manga1000:Failed to parse manga details info.
This commit is contained in:
AlphaBoom 2024-02-07 21:53:22 +08:00 committed by Draff
parent 48c71e342d
commit fb88e2ce97
2 changed files with 5 additions and 2 deletions

View File

@ -13,6 +13,9 @@ import rx.Observable
import java.util.Calendar
class Manga1000 : FMReader("Manga1000", "https://manga1000.top", "ja") {
override val infoElementSelector = "div.row div.row"
// source is picky about URL format
private fun mangaRequest(sortBy: String, page: Int): Request {
return GET("$baseUrl/manga-list.html?listType=pagination&page=$page&artist=&author=&group=&m_status=&name=&genre=&ungenre=&magazine=&sort=$sortBy&sort_type=DESC", headers)
@ -25,7 +28,7 @@ class Manga1000 : FMReader("Manga1000", "https://manga1000.top", "ja") {
override fun fetchChapterList(manga: SManga): Observable<List<SChapter>> {
val slug = manga.url.substringAfter("manga-").substringBefore(".html")
return client.newCall(GET("$baseUrl/app/manga/controllers/cont.Listchapterapi.php?slug=$slug", headers))
return client.newCall(GET("$baseUrl/app/manga/controllers/cont.Listchapter.php?slug=$slug", headers))
.asObservableSuccess()
.map { res ->
res.asJsoup().select(".at-series a").map {

View File

@ -14,7 +14,7 @@ class FMReaderGenerator : ThemeSourceGenerator {
override val sources = listOf(
SingleLang("KissLove", "https://klz9.com", "ja", isNsfw = true, overrideVersionCode = 5),
SingleLang("Manga-TR", "https://manga-tr.com", "tr", className = "MangaTR", overrideVersionCode = 3),
SingleLang("Manga1000", "https://manga1000.top", "ja", overrideVersionCode = 1),
SingleLang("Manga1000", "https://manga1000.top", "ja", overrideVersionCode = 2),
SingleLang("Nicomanga", "https://nicomanga.com", "ja", isNsfw = true),
SingleLang("WeLoveManga", "https://weloma.art", "ja", pkgName = "rawlh", isNsfw = true, overrideVersionCode = 5),
SingleLang("WeLoveMangaOne", "https://welovemanga.one", "ja", isNsfw = true, overrideVersionCode = 1),