[QOL] Manhuaren - Identify locked chapters (#1676)

[QOL] Manhuaren - Identify locked chapters
This commit is contained in:
happywillow0 2019-10-20 08:51:36 -04:00 committed by Carlos
parent c23919892b
commit e9336cfbf8
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Manhuaren'
pkgNameSuffix = 'zh.manhuaren'
extClass = '.Manhuaren'
extVersionCode = 6
extVersionCode = 7
libVersion = '1.2'
}

View File

@ -233,7 +233,7 @@ class Manhuaren : HttpSource() {
val obj = arr.getJSONObject(i)
ret.add(SChapter.create().apply {
val dateFormat = SimpleDateFormat("yyyy-MM-dd", Locale.getDefault())
name = getChapterName(type, obj.getString("sectionName"), obj.getString("sectionTitle"))
name = if (obj.getInt("isMustPay")==1) {"(锁) "} else {""} + getChapterName(type, obj.getString("sectionName"), obj.getString("sectionTitle"))
date_upload = dateFormat.parse(obj.getString("releaseTime")).time
chapter_number = obj.getInt("sectionSort").toFloat()
url = "/v1/manga/getRead?mangaSectionId=${obj.getInt("sectionId")}"