[Toomics] Filter out 'free in app' chapters (#2008)

[Toomics] Filter out 'free in app' chapters
This commit is contained in:
FlaminSarge 2020-01-07 04:29:24 -08:00 committed by arkon
parent 02ef81fef9
commit eb78997ec1
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Toomics' appName = 'Tachiyomi: Toomics'
pkgNameSuffix = 'all.toomics' pkgNameSuffix = 'all.toomics'
extClass = '.ToomicsFactory' extClass = '.ToomicsFactory'
extVersionCode = 1 extVersionCode = 2
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -98,7 +98,7 @@ abstract class ToomicsGlobal(private val siteLang: String,
.map { it.reversed() } .map { it.reversed() }
} }
override fun chapterListSelector(): String = "section.ep-body ol.list-ep li.normal_ep a:not([onclick*='login'])" override fun chapterListSelector(): String = "section.ep-body ol.list-ep li.normal_ep a:not([onclick*='login']):not([onclick*='free_in_app'])"
override fun chapterFromElement(element: Element): SChapter = SChapter.create().apply { override fun chapterFromElement(element: Element): SChapter = SChapter.create().apply {
val num = element.select("div.cell-num span.num").text() val num = element.select("div.cell-num span.num").text()