Cubari QoL Patch (#6760)

* Was trying to get JSONobject instead of string

* Update build.gradle
This commit is contained in:
FourTOne5 2021-04-29 23:06:01 +06:00 committed by GitHub
parent a77f70473f
commit 948cff84e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Cubari'
pkgNameSuffix = "all.cubari"
extClass = '.CubariFactory'
extVersionCode = 3
extVersionCode = 4
libVersion = '1.2'
}

View File

@ -250,14 +250,14 @@ open class Cubari(override val lang: String) : HttpSource() {
val json = JSONObject(payload)
val groups = json.getJSONObject("groups")
val chapters = json.getJSONObject("chapters")
val seriesSlug = json.getJSONObject("slug")
val seriesSlug = json.getString("slug")
val chapterList = ArrayList<SChapter>()
val iter = chapters.keys()
val seriesPrefs = Injekt.get<Application>().getSharedPreferences("source_${id}_time_found:$seriesSlug", 0)
val seriesPrefs = Injekt.get<Application>().getSharedPreferences("source_${id}_updateTime:$seriesSlug", 0)
val seriesPrefsEditor = seriesPrefs.edit()
while (iter.hasNext()) {