parent
c7db4b62ae
commit
207f010eb1
|
@ -5,7 +5,7 @@ ext {
|
||||||
appName = 'Tachiyomi: Manga Rock'
|
appName = 'Tachiyomi: Manga Rock'
|
||||||
pkgNameSuffix = 'en.mangarock'
|
pkgNameSuffix = 'en.mangarock'
|
||||||
extClass = '.MangaRock'
|
extClass = '.MangaRock'
|
||||||
extVersionCode = 12
|
extVersionCode = 13
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,12 +12,7 @@ import eu.kanade.tachiyomi.source.model.Page
|
||||||
import eu.kanade.tachiyomi.source.model.SChapter
|
import eu.kanade.tachiyomi.source.model.SChapter
|
||||||
import eu.kanade.tachiyomi.source.model.SManga
|
import eu.kanade.tachiyomi.source.model.SManga
|
||||||
import eu.kanade.tachiyomi.source.online.HttpSource
|
import eu.kanade.tachiyomi.source.online.HttpSource
|
||||||
import okhttp3.MediaType
|
import okhttp3.*
|
||||||
import okhttp3.OkHttpClient
|
|
||||||
import okhttp3.Request
|
|
||||||
import okhttp3.RequestBody
|
|
||||||
import okhttp3.Response
|
|
||||||
import okhttp3.ResponseBody
|
|
||||||
import org.json.JSONObject
|
import org.json.JSONObject
|
||||||
import rx.Observable
|
import rx.Observable
|
||||||
import java.util.ArrayList
|
import java.util.ArrayList
|
||||||
|
@ -40,6 +35,9 @@ class MangaRock : HttpSource() {
|
||||||
|
|
||||||
override val supportsLatest = true
|
override val supportsLatest = true
|
||||||
|
|
||||||
|
override fun headersBuilder(): Headers.Builder = Headers.Builder()
|
||||||
|
.add("Origin", "https://mangarock.com")
|
||||||
|
|
||||||
// Handles the page decoding
|
// Handles the page decoding
|
||||||
override val client: OkHttpClient = super.client.newBuilder().addInterceptor(fun(chain): Response {
|
override val client: OkHttpClient = super.client.newBuilder().addInterceptor(fun(chain): Response {
|
||||||
val url = chain.request().url().toString()
|
val url = chain.request().url().toString()
|
||||||
|
|
Loading…
Reference in New Issue