Comic Gamma: fix chapter list (#3296)

This commit is contained in:
stevenyomi 2024-05-30 12:49:21 +08:00 committed by GitHub
parent d97020723f
commit 2868635835
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ plugins {
id("lib-multisrc") id("lib-multisrc")
} }
baseVersionCode = 7 baseVersionCode = 8
dependencies { dependencies {
api(project(":lib:speedbinb")) api(project(":lib:speedbinb"))

View File

@ -84,7 +84,7 @@ open class ComicGamma(
} }
} }
override fun chapterListSelector() = ".read__area > .read__outer > a:not([href=#comics])" override fun chapterListSelector() = ".read__area .read__outer > a:not([href=#comics])"
override fun chapterFromElement(element: Element) = SChapter.create().apply { override fun chapterFromElement(element: Element) = SChapter.create().apply {
url = element.attr("href").toOldChapterUrl() url = element.attr("href").toOldChapterUrl()
val number = url.removeSuffix("/").substringAfterLast('/').replace('_', '.') val number = url.removeSuffix("/").substringAfterLast('/').replace('_', '.')