Cubari QoL Patch (#6760)
* Was trying to get JSONobject instead of string * Update build.gradle
This commit is contained in:
parent
a77f70473f
commit
948cff84e5
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'Cubari'
|
||||
pkgNameSuffix = "all.cubari"
|
||||
extClass = '.CubariFactory'
|
||||
extVersionCode = 3
|
||||
extVersionCode = 4
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue