utoon: fix NPE on chapter list (#4643)

This commit is contained in:
AwkwardPeak7 2024-08-17 09:54:10 +05:00 committed by Draff
parent 231197b43c
commit cb8cac580f
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 1 additions and 3 deletions

View File

@ -3,7 +3,7 @@ ext {
extClass = '.Utoon' extClass = '.Utoon'
themePkg = 'madara' themePkg = 'madara'
baseUrl = 'https://utoon.net' baseUrl = 'https://utoon.net'
overrideVersionCode = 1 overrideVersionCode = 2
} }
apply from: "$rootDir/common.gradle" apply from: "$rootDir/common.gradle"

View File

@ -19,8 +19,6 @@ class Utoon : Madara(
override fun chapterListSelector() = "li.wp-manga-chapter:not(.premium-block)" override fun chapterListSelector() = "li.wp-manga-chapter:not(.premium-block)"
override val chapterUrlSelector = "div > a"
override fun chapterFromElement(element: Element): SChapter { override fun chapterFromElement(element: Element): SChapter {
return super.chapterFromElement(element).apply { return super.chapterFromElement(element).apply {
val currentYear = Calendar.getInstance().get(Calendar.YEAR) val currentYear = Calendar.getInstance().get(Calendar.YEAR)