dmzj chapterList's api changed (#4115)

* dmzj chapterList's api changed

* Update Dmzj.kt

Add prefix
This commit is contained in:
vance 2020-08-14 08:46:40 +08:00 committed by GitHub
parent 56198e2661
commit 7a8dfac7a8
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 = 'Dmzj'
pkgNameSuffix = 'zh.dmzj'
extClass = '.Dmzj'
extVersionCode = 9
extVersionCode = 10
libVersion = '1.2'
}

View File

@ -160,8 +160,8 @@ class Dmzj : HttpSource() {
ret.add(SChapter.create().apply {
name = "$prefix: ${chapter.getString("chapter_title")}"
date_upload = chapter.getString("updatetime").toLong() * 1000 // milliseconds
// 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
url = "$baseUrl/chapter/$cid/${chapter.getString("chapter_id")}.json"
// url = "http://m.dmzj.com/chapinfo/$cid/${chapter.getString("chapter_id")}.html" // From m_readerBg.js
})
}
}