update response.body according to okhttp4
This commit is contained in:
@ -5,7 +5,7 @@ ext {
|
|||||||
extName = '2dgirls.tech'
|
extName = '2dgirls.tech'
|
||||||
pkgNameSuffix = 'en.twodgirlstech'
|
pkgNameSuffix = 'en.twodgirlstech'
|
||||||
extClass = '.TwoDGirlsTech'
|
extClass = '.TwoDGirlsTech'
|
||||||
extVersionCode = 3
|
extVersionCode = 4
|
||||||
libVersion = '1.3'
|
libVersion = '1.3'
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
|
@ -44,7 +44,7 @@ class TwoDGirlsTech : ParsedAnimeHttpSource() {
|
|||||||
throw e
|
throw e
|
||||||
}
|
}
|
||||||
override fun onResponse(call: Call, response: Response) {
|
override fun onResponse(call: Call, response: Response) {
|
||||||
val strResponse = response.body()!!.string()
|
val strResponse = response.body!!.string()
|
||||||
// creating json object
|
// creating json object
|
||||||
val json = JSONObject(strResponse)
|
val json = JSONObject(strResponse)
|
||||||
// creating json array
|
// creating json array
|
||||||
@ -74,7 +74,7 @@ class TwoDGirlsTech : ParsedAnimeHttpSource() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun onResponse(call: Call, response: Response) {
|
override fun onResponse(call: Call, response: Response) {
|
||||||
val strResponse = response.body()!!.string()
|
val strResponse = response.body!!.string()
|
||||||
// creating json object
|
// creating json object
|
||||||
val json = JSONObject(strResponse)
|
val json = JSONObject(strResponse)
|
||||||
// creating json array
|
// creating json array
|
||||||
@ -109,7 +109,7 @@ class TwoDGirlsTech : ParsedAnimeHttpSource() {
|
|||||||
throw e
|
throw e
|
||||||
}
|
}
|
||||||
override fun onResponse(call: Call, response: Response) {
|
override fun onResponse(call: Call, response: Response) {
|
||||||
val strResponse = response.body()!!.string()
|
val strResponse = response.body!!.string()
|
||||||
// creating json object
|
// creating json object
|
||||||
val json = JSONObject(strResponse)
|
val json = JSONObject(strResponse)
|
||||||
// creating json array
|
// creating json array
|
||||||
|
Reference in New Issue
Block a user