[Fix] Dmzj - api issues (#1709)

[Fix] Dmzj - api issues
This commit is contained in:
happywillow0 2019-10-26 10:42:34 -04:00 committed by arkon
parent ba759b7678
commit 962ee55955
2 changed files with 5 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Dmzj'
pkgNameSuffix = 'zh.dmzj'
extClass = '.Dmzj'
extVersionCode = 7
extVersionCode = 8
libVersion = '1.2'
}

View File

@ -154,13 +154,16 @@ class Dmzj : HttpSource() {
ret.add(SChapter.create().apply {
name = "$prefix: ${chapter.getString("chapter_title")}"
date_upload = chapter.getString("updatetime").toLong()*1000 //milliseconds
url = "/chapter/$cid/${chapter.getString("chapter_id")}.json"
//V3API url = "/chapter/$cid/${chapter.getString("chapter_id")}.json"
url = "http://m.dmzj.com/chapinfo/$cid/${chapter.getString("chapter_id")}.html" //From m_readerBg.js
})
}
}
return ret
}
override fun pageListRequest(chapter: SChapter) = GET( chapter.url, headers) //Bypass base url
override fun pageListParse(response: Response): List<Page> {
val obj = JSONObject(response.body()!!.string())
val arr = obj.getJSONArray("page_url")