update response.body according to okhttp4

This commit is contained in:
jmir1
2021-05-27 16:09:45 +02:00
parent 4237b8d70e
commit 5cb64548bb
2 changed files with 4 additions and 4 deletions

View File

@ -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 {

View File

@ -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