fix myreadingmanga showing next as chapter (#400)

This commit is contained in:
Carlos 2018-07-12 12:05:13 -04:00 committed by GitHub
parent 929f14632c
commit 622f02e517
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -5,8 +5,8 @@ ext {
appName = 'Tachiyomi: MyReadingManga' appName = 'Tachiyomi: MyReadingManga'
pkgNameSuffix = "all.myreadingmanga" pkgNameSuffix = "all.myreadingmanga"
extClass = '.MyReadingMangaFactory' extClass = '.MyReadingMangaFactory'
extVersionCode = 2 extVersionCode = 3
extVersionSuffix = 1 extVersionSuffix = 2
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -109,9 +109,11 @@ open class MyReadingManga(override val lang: String) : ParsedHttpSource() {
//see if there are multiple chapters or not //see if there are multiple chapters or not
document.select(chapterListSelector())?.let { it -> document.select(chapterListSelector())?.let { it ->
it.forEach { it.forEach {
if (!it.text().contains("Next »", true)) {
chapters.add(createChapter(it.text(), document.baseUri(), date)) chapters.add(createChapter(it.text(), document.baseUri(), date))
} }
} }
}
chapters.reverse() chapters.reverse()
return chapters return chapters