Kagane: page count check (#11002)

* fix small condition

* bump
This commit is contained in:
dngonz 2025-10-11 16:37:18 +02:00 committed by Draff
parent a493a38e6e
commit 4e8f7db34f
Signed by: Draff
GPG Key ID: E8A89F3211677653
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'Kagane'
extClass = '.Kagane'
extVersionCode = 4
extVersionCode = 5
isNsfw = true
}

View File

@ -224,7 +224,7 @@ class Kagane : HttpSource(), ConfigurableSource {
}
override fun fetchPageList(chapter: SChapter): Observable<List<Page>> {
if (chapter.url.count { it == ';' } == 2) throw Exception("Chapter url error, please refresh chapter list.")
if (chapter.url.count { it == ';' } != 2) throw Exception("Chapter url error, please refresh chapter list.")
var (seriesId, chapterId, pageCount) = chapter.url.split(";")
val challengeResp = getChallengeResponse(seriesId, chapterId)