From ed8266fb68ab7fb3954a13487481130709ef2f68 Mon Sep 17 00:00:00 2001 From: Alessandro Jean Date: Sat, 7 Aug 2021 12:59:47 -0300 Subject: [PATCH] Fix Duktape decoding not working in MangaPlus. (#8444) --- src/all/mangaplus/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/all/mangaplus/MangaPlus.kt | 2 +- .../eu/kanade/tachiyomi/extension/all/mangaplus/MangaPlusApi.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/all/mangaplus/build.gradle b/src/all/mangaplus/build.gradle index dbae9ce43..ca7a2d785 100644 --- a/src/all/mangaplus/build.gradle +++ b/src/all/mangaplus/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'MANGA Plus by SHUEISHA' pkgNameSuffix = 'all.mangaplus' extClass = '.MangaPlusFactory' - extVersionCode = 21 + extVersionCode = 22 libVersion = '1.2' } diff --git a/src/all/mangaplus/src/eu/kanade/tachiyomi/extension/all/mangaplus/MangaPlus.kt b/src/all/mangaplus/src/eu/kanade/tachiyomi/extension/all/mangaplus/MangaPlus.kt index 632d3f78e..5edf7fa6d 100644 --- a/src/all/mangaplus/src/eu/kanade/tachiyomi/extension/all/mangaplus/MangaPlus.kt +++ b/src/all/mangaplus/src/eu/kanade/tachiyomi/extension/all/mangaplus/MangaPlus.kt @@ -447,7 +447,7 @@ abstract class MangaPlus( companion object { 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) " + - "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() diff --git a/src/all/mangaplus/src/eu/kanade/tachiyomi/extension/all/mangaplus/MangaPlusApi.kt b/src/all/mangaplus/src/eu/kanade/tachiyomi/extension/all/mangaplus/MangaPlusApi.kt index 8b8512e96..a80170dc9 100644 --- a/src/all/mangaplus/src/eu/kanade/tachiyomi/extension/all/mangaplus/MangaPlusApi.kt +++ b/src/all/mangaplus/src/eu/kanade/tachiyomi/extension/all/mangaplus/MangaPlusApi.kt @@ -201,7 +201,7 @@ const val DECODE_SCRIPT: String = var AllTitlesViewV2 = new Type("AllTitlesViewV2") .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("titles", 2, "Title", "repeated"));