Mangatensei: Improve image parsing and update icons (#1357)

Signed-off-by: Rama Bondan Prakoso <ramanarubp@gmail.com>
This commit is contained in:
Rama Bondan Prakoso 2019-07-30 19:49:38 +07:00 committed by Carlos
parent 1604adaa58
commit a99d2a58c1
8 changed files with 7 additions and 4 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Mangatensei' appName = 'Tachiyomi: Mangatensei'
pkgNameSuffix = 'all.mangatensei' pkgNameSuffix = 'all.mangatensei'
extClass = '.MangatenseiFactory' extClass = '.MangatenseiFactory'
extVersionCode = 1 extVersionCode = 2
libVersion = '1.2' libVersion = '1.2'
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 33 KiB

View File

@ -254,10 +254,13 @@ open class Mangatensei(override val lang: String, private val Mtlang: String) :
val pages = mutableListOf<Page>() val pages = mutableListOf<Page>()
val script = document.select("script").html() val script = document.select("script").html()
.substringAfter("var images = ").substringBefore(";") .substringAfter("var images = ").substringBefore(";")
val imgList = JSONObject(script) val imgJson = JSONObject(script)
val imgNames = imgJson.names()
for( i in 1 until imgList.length() + 1) { for( i in 0 until imgNames.length()) {
pages.add(Page(i - 1, "", imgList.getString("$i"))) val imgKey = imgNames.getString(i)
val imgUrl = imgJson.getString(imgKey)
pages.add(Page(i, "", imgUrl))
} }
return pages return pages