导出txt时不保留vip标识

This commit is contained in:
Xwite
2023-03-26 19:33:56 +08:00
parent af104c8a2c
commit e13a966821
2 changed files with 10 additions and 4 deletions
+1
View File
@@ -17,6 +17,7 @@
* 更新rhino: 1.7.14-2
* 修复bug
* 详情页下拉刷新
* 导出为本地文件时不保留vip标识
* 其中一些更新由 Xwite, Horis提供
**2023/03/21**
@@ -222,6 +222,7 @@ class CacheViewModel(application: Application) : BaseViewModel(application) {
val content1 = contentProcessor
.getContent(
book,
// 不导出vip标识
chapter.apply { isVip = false },
content ?: if (chapter.isVolume) "" else "null",
includeTitle = !AppConfig.exportNoChapterName,
@@ -511,10 +512,14 @@ class CacheViewModel(application: Application) : BaseViewModel(application) {
chineseConvert = false,
reSegment = false
).toString()
val title = chapter.getDisplayTitle(
contentProcessor.getTitleReplaceRules(),
useReplace = useReplace
)
val title = chapter.run {
// 不导出vip标识
isVip = false
getDisplayTitle(
contentProcessor.getTitleReplaceRules(),
useReplace = useReplace
)
}
epubBook.addSection(
title,
ResourceUtil.createChapterResource(