Fix Duktape decoding not working in MangaPlus. (#8444)
This commit is contained in:
parent
cbd3f96907
commit
ed8266fb68
|
@ -6,7 +6,7 @@ ext {
|
||||||
extName = 'MANGA Plus by SHUEISHA'
|
extName = 'MANGA Plus by SHUEISHA'
|
||||||
pkgNameSuffix = 'all.mangaplus'
|
pkgNameSuffix = 'all.mangaplus'
|
||||||
extClass = '.MangaPlusFactory'
|
extClass = '.MangaPlusFactory'
|
||||||
extVersionCode = 21
|
extVersionCode = 22
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -447,7 +447,7 @@ abstract class MangaPlus(
|
||||||
companion object {
|
companion object {
|
||||||
private const val API_URL = "https://jumpg-webapi.tokyo-cdn.com/api"
|
private const val API_URL = "https://jumpg-webapi.tokyo-cdn.com/api"
|
||||||
private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) " +
|
private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) " +
|
||||||
"AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36"
|
"AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36"
|
||||||
|
|
||||||
private val HEX_GROUP = "(.{1,2})".toRegex()
|
private val HEX_GROUP = "(.{1,2})".toRegex()
|
||||||
|
|
||||||
|
|
|
@ -201,7 +201,7 @@ const val DECODE_SCRIPT: String =
|
||||||
var AllTitlesViewV2 = new Type("AllTitlesViewV2")
|
var AllTitlesViewV2 = new Type("AllTitlesViewV2")
|
||||||
.add(new Field("allTitlesGroup", 1, "AllTitlesGroup", "repeated"));
|
.add(new Field("allTitlesGroup", 1, "AllTitlesGroup", "repeated"));
|
||||||
|
|
||||||
var AlLTitlesGroup = new Type("AllTitlesGroup")
|
var AllTitlesGroup = new Type("AllTitlesGroup")
|
||||||
.add(new Field("theTitle", 1, "string"))
|
.add(new Field("theTitle", 1, "string"))
|
||||||
.add(new Field("titles", 2, "Title", "repeated"));
|
.add(new Field("titles", 2, "Title", "repeated"));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue