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