Fix Duktape decoding not working in MangaPlus. (#8444)

This commit is contained in:
Alessandro Jean 2021-08-07 12:59:47 -03:00 committed by GitHub
parent cbd3f96907
commit ed8266fb68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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'
} }

View File

@ -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()

View File

@ -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"));