导出txt时不保留vip标识
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user