[Mangadex] Fix authorMap being empty (#6905)

* [Mangadex] Fix authorMap being empty

* Revert build.gradle version
This commit is contained in:
FlaminSarge 2021-05-08 09:01:29 -07:00 committed by GitHub
parent 8a13a17a52
commit 4424edf879
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ class MangaDexHelper() {
val response = client.newCall(GET("${MDConstants.apiUrl}/author$ids")).execute()
val json = JsonParser.parseString(response.body!!.string())
json.obj["results"].array.map { result ->
result["data"]["attributes"]["id"].string to
result["data"]["id"].string to
cleanString(result["data"]["attributes"]["name"].string)
}.toMap()
}.getOrNull() ?: emptyMap()