[mgk] fix fetching pages (#87)
This commit is contained in:
parent
84270454c3
commit
14c0b6ccaf
@ -5,11 +5,12 @@ ext {
|
|||||||
extName = 'Mangaku'
|
extName = 'Mangaku'
|
||||||
pkgNameSuffix = 'id.mangaku'
|
pkgNameSuffix = 'id.mangaku'
|
||||||
extClass = '.Mangaku'
|
extClass = '.Mangaku'
|
||||||
extVersionCode = 6
|
extVersionCode = 7
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(':lib-cryptoaes'))
|
implementation(project(':lib-cryptoaes'))
|
||||||
|
implementation(project(':lib-unpacker'))
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,7 @@ import android.net.Uri
|
|||||||
import android.util.Base64
|
import android.util.Base64
|
||||||
import android.util.Log
|
import android.util.Log
|
||||||
import eu.kanade.tachiyomi.lib.cryptoaes.CryptoAES
|
import eu.kanade.tachiyomi.lib.cryptoaes.CryptoAES
|
||||||
|
import eu.kanade.tachiyomi.lib.unpacker.Unpacker
|
||||||
import eu.kanade.tachiyomi.network.GET
|
import eu.kanade.tachiyomi.network.GET
|
||||||
import eu.kanade.tachiyomi.network.POST
|
import eu.kanade.tachiyomi.network.POST
|
||||||
import eu.kanade.tachiyomi.network.asObservableSuccess
|
import eu.kanade.tachiyomi.network.asObservableSuccess
|
||||||
@ -28,7 +29,7 @@ class Mangaku : ParsedHttpSource() {
|
|||||||
|
|
||||||
override val name = "Mangaku"
|
override val name = "Mangaku"
|
||||||
|
|
||||||
override val baseUrl = "https://mangaku.blog"
|
override val baseUrl = "https://mangaku.mom"
|
||||||
|
|
||||||
override val lang = "id"
|
override val lang = "id"
|
||||||
|
|
||||||
@ -141,12 +142,20 @@ class Mangaku : ParsedHttpSource() {
|
|||||||
val wpRoutineJs = client.newCall(GET(wpRoutineUrl, headers)).execute().use {
|
val wpRoutineJs = client.newCall(GET(wpRoutineUrl, headers)).execute().use {
|
||||||
it.body.string()
|
it.body.string()
|
||||||
}
|
}
|
||||||
|
|
||||||
val upt3 = wpRoutineJs
|
val upt3 = wpRoutineJs
|
||||||
.substringAfterLast("upt3(")
|
.substringAfterLast("upt3(")
|
||||||
.substringBefore(");")
|
.substringBefore(");")
|
||||||
val appMgk = wpRoutineJs
|
val keymapJsPacked = wpRoutineJs
|
||||||
.substringAfter("const $upt3 = '")
|
.substringAfter("eval(function(x,a,c,k,e,d)")
|
||||||
.substringBefore("'")
|
.substringBefore(".split('|'),0,{}))") + ".split('|'),0,{}))"
|
||||||
|
val keymapJs = Unpacker.unpack(keymapJsPacked)
|
||||||
|
val appMgkVariable = keymapJs
|
||||||
|
.substringAfter("$upt3=")
|
||||||
|
.substringBefore(";")
|
||||||
|
val appMgk = keymapJs
|
||||||
|
.substringAfter("let $appMgkVariable=\"")
|
||||||
|
.substringBefore("\";")
|
||||||
.reversed()
|
.reversed()
|
||||||
Log.d("mangaku", "app-mgk: $appMgk")
|
Log.d("mangaku", "app-mgk: $appMgk")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user