Update NewToki Extension v1.2.18 (#4424)

Update NewToki Extension v1.2.18
This commit is contained in:
DitFranXX 2020-09-22 21:14:53 +09:00 committed by GitHub
parent 2d921b76be
commit 1fb4957117
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'NewToki / ManaToki(ManaMoa)'
pkgNameSuffix = 'ko.newtoki'
extClass = '.NewTokiFactory'
extVersionCode = 17
extVersionCode = 18
libVersion = '1.2'
}

View File

@ -218,7 +218,7 @@ open class NewToki(override val name: String, private val defaultBaseUrl: String
.flatMap { it.split(".") }
.joinToString("") { it.toIntOrNull(16)?.toChar()?.toString() ?: "" }
.let { Jsoup.parse(it) }
.select("img[alt]")
.select("img[src=/img/loading-image.gif]")
.mapIndexed { i, img -> Page(i, "", if (img.hasAttr(dataAttr)) img.attr(dataAttr) else img.attr("abs:content")) }
}