From 213b5d64d0241bbf3f3cc161f04ff419c108124a Mon Sep 17 00:00:00 2001 From: Vetle Ledaal Date: Fri, 29 Mar 2024 06:55:16 +0000 Subject: [PATCH] StoneScape: hide premium chapters (#2140) --- src/en/stonescape/build.gradle | 3 ++- .../tachiyomi/extension/en/stonescape/StoneScape.kt | 9 +++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/en/stonescape/build.gradle b/src/en/stonescape/build.gradle index e170527a8..c2ef6b0d4 100644 --- a/src/en/stonescape/build.gradle +++ b/src/en/stonescape/build.gradle @@ -3,7 +3,8 @@ ext { extClass = '.StoneScape' themePkg = 'madara' baseUrl = 'https://stonescape.xyz' - overrideVersionCode = 0 + overrideVersionCode = 1 + isNsfw = false } apply from: "$rootDir/common.gradle" diff --git a/src/en/stonescape/src/eu/kanade/tachiyomi/extension/en/stonescape/StoneScape.kt b/src/en/stonescape/src/eu/kanade/tachiyomi/extension/en/stonescape/StoneScape.kt index 880d0acd7..c9b3d8f2f 100644 --- a/src/en/stonescape/src/eu/kanade/tachiyomi/extension/en/stonescape/StoneScape.kt +++ b/src/en/stonescape/src/eu/kanade/tachiyomi/extension/en/stonescape/StoneScape.kt @@ -8,8 +8,13 @@ class StoneScape : Madara( "StoneScape", "https://stonescape.xyz", "en", - SimpleDateFormat("MMMM dd, yyyy", Locale("en")), + SimpleDateFormat("MMMM dd, yyyy", Locale.ENGLISH), ) { override val mangaSubString = "series" - override val chapterUrlSelector = "div + a" + + override val chapterUrlSelector = "li > a" + + override val mangaDetailsSelectorAuthor = ".post-content .manga-authors a" + + override fun chapterListSelector() = "li.wp-manga-chapter:not(.premium-block)" }