Mangatensei: Improve image parsing and update icons (#1357)
Signed-off-by: Rama Bondan Prakoso <ramanarubp@gmail.com>
|
@ -5,7 +5,7 @@ ext {
|
|||
appName = 'Tachiyomi: Mangatensei'
|
||||
pkgNameSuffix = 'all.mangatensei'
|
||||
extClass = '.MangatenseiFactory'
|
||||
extVersionCode = 1
|
||||
extVersionCode = 2
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 33 KiB |
|
@ -254,10 +254,13 @@ open class Mangatensei(override val lang: String, private val Mtlang: String) :
|
|||
val pages = mutableListOf<Page>()
|
||||
val script = document.select("script").html()
|
||||
.substringAfter("var images = ").substringBefore(";")
|
||||
val imgList = JSONObject(script)
|
||||
val imgJson = JSONObject(script)
|
||||
val imgNames = imgJson.names()
|
||||
|
||||
for( i in 1 until imgList.length() + 1) {
|
||||
pages.add(Page(i - 1, "", imgList.getString("$i")))
|
||||
for( i in 0 until imgNames.length()) {
|
||||
val imgKey = imgNames.getString(i)
|
||||
val imgUrl = imgJson.getString(imgKey)
|
||||
pages.add(Page(i, "", imgUrl))
|
||||
}
|
||||
|
||||
return pages
|
||||
|
|