From eb78997ec14b313d4e3087c68f4d18d8ef00cb12 Mon Sep 17 00:00:00 2001 From: FlaminSarge Date: Tue, 7 Jan 2020 04:29:24 -0800 Subject: [PATCH] [Toomics] Filter out 'free in app' chapters (#2008) [Toomics] Filter out 'free in app' chapters --- src/all/toomics/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/all/toomics/ToomicsGlobal.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/all/toomics/build.gradle b/src/all/toomics/build.gradle index d39945805..aa0213fc4 100644 --- a/src/all/toomics/build.gradle +++ b/src/all/toomics/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: Toomics' pkgNameSuffix = 'all.toomics' extClass = '.ToomicsFactory' - extVersionCode = 1 + extVersionCode = 2 libVersion = '1.2' } diff --git a/src/all/toomics/src/eu/kanade/tachiyomi/extension/all/toomics/ToomicsGlobal.kt b/src/all/toomics/src/eu/kanade/tachiyomi/extension/all/toomics/ToomicsGlobal.kt index 30bb4d840..0b56e007e 100644 --- a/src/all/toomics/src/eu/kanade/tachiyomi/extension/all/toomics/ToomicsGlobal.kt +++ b/src/all/toomics/src/eu/kanade/tachiyomi/extension/all/toomics/ToomicsGlobal.kt @@ -98,7 +98,7 @@ abstract class ToomicsGlobal(private val siteLang: String, .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 { val num = element.select("div.cell-num span.num").text()