Soul Scans: tweak page selector, filter novel series (#5382)

- exclude ads from page list
- filter novel series when browsing
This commit is contained in:
Luqman 2024-10-06 18:45:24 +07:00 committed by Draff
parent b1bda6d46a
commit 8003ab180d
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 5 additions and 1 deletions

View File

@ -3,7 +3,7 @@ ext {
extClass = '.SoulScans'
themePkg = 'mangathemesia'
baseUrl = 'https://soulscans.my.id'
overrideVersionCode = 1
overrideVersionCode = 2
}
apply from: "$rootDir/common.gradle"

View File

@ -9,6 +9,8 @@ class SoulScans : MangaThemesia("Soul Scans", "https://soulscans.my.id", "id") {
override val hasProjectPage = true
override fun searchMangaSelector() = ".listupd .bs .bsx:not(:has(.novelabel))"
override fun mangaDetailsParse(document: Document) = SManga.create().apply {
document.selectFirst(seriesDetailsSelector)?.let { seriesDetails ->
title = seriesDetails.selectFirst(seriesTitleSelector)?.text().orEmpty()
@ -38,4 +40,6 @@ class SoulScans : MangaThemesia("Soul Scans", "https://soulscans.my.id", "id") {
seriesDetails.select(seriesThumbnailSelector).firstOrNull()?.let { thumbnail_url = it.imgAttr() }
}
}
override val pageSelector = "div#readerarea img:not([src*='.gif'])"
}