From 622f02e5177b530c645accf8d64035f09b133f46 Mon Sep 17 00:00:00 2001 From: Carlos Date: Thu, 12 Jul 2018 12:05:13 -0400 Subject: [PATCH] fix myreadingmanga showing next as chapter (#400) --- src/all/myreadingmanga/build.gradle | 4 ++-- .../extension/all/myreadingmanga/MyReadingManga.kt | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/all/myreadingmanga/build.gradle b/src/all/myreadingmanga/build.gradle index 242279d08..52649dcce 100644 --- a/src/all/myreadingmanga/build.gradle +++ b/src/all/myreadingmanga/build.gradle @@ -5,8 +5,8 @@ ext { appName = 'Tachiyomi: MyReadingManga' pkgNameSuffix = "all.myreadingmanga" extClass = '.MyReadingMangaFactory' - extVersionCode = 2 - extVersionSuffix = 1 + extVersionCode = 3 + extVersionSuffix = 2 libVersion = '1.2' } diff --git a/src/all/myreadingmanga/src/eu/kanade/tachiyomi/extension/all/myreadingmanga/MyReadingManga.kt b/src/all/myreadingmanga/src/eu/kanade/tachiyomi/extension/all/myreadingmanga/MyReadingManga.kt index b79ea932e..43294f86f 100644 --- a/src/all/myreadingmanga/src/eu/kanade/tachiyomi/extension/all/myreadingmanga/MyReadingManga.kt +++ b/src/all/myreadingmanga/src/eu/kanade/tachiyomi/extension/all/myreadingmanga/MyReadingManga.kt @@ -109,7 +109,9 @@ open class MyReadingManga(override val lang: String) : ParsedHttpSource() { //see if there are multiple chapters or not document.select(chapterListSelector())?.let { it -> it.forEach { - chapters.add(createChapter(it.text(), document.baseUri(), date)) + if (!it.text().contains("Next ยป", true)) { + chapters.add(createChapter(it.text(), document.baseUri(), date)) + } } } chapters.reverse() @@ -145,5 +147,5 @@ open class MyReadingManga(override val lang: String) : ParsedHttpSource() { override fun pageListParse(document: Document) = throw Exception("Not used") override fun imageUrlRequest(page: Page) = throw Exception("Not used") override fun imageUrlParse(document: Document) = throw Exception("Not used") - + }