导出txt时不保留vip标识
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
* 更新rhino: 1.7.14-2
|
* 更新rhino: 1.7.14-2
|
||||||
* 修复bug
|
* 修复bug
|
||||||
* 详情页下拉刷新
|
* 详情页下拉刷新
|
||||||
|
* 导出为本地文件时不保留vip标识
|
||||||
* 其中一些更新由 Xwite, Horis提供
|
* 其中一些更新由 Xwite, Horis提供
|
||||||
|
|
||||||
**2023/03/21**
|
**2023/03/21**
|
||||||
|
|||||||
@@ -222,6 +222,7 @@ class CacheViewModel(application: Application) : BaseViewModel(application) {
|
|||||||
val content1 = contentProcessor
|
val content1 = contentProcessor
|
||||||
.getContent(
|
.getContent(
|
||||||
book,
|
book,
|
||||||
|
// 不导出vip标识
|
||||||
chapter.apply { isVip = false },
|
chapter.apply { isVip = false },
|
||||||
content ?: if (chapter.isVolume) "" else "null",
|
content ?: if (chapter.isVolume) "" else "null",
|
||||||
includeTitle = !AppConfig.exportNoChapterName,
|
includeTitle = !AppConfig.exportNoChapterName,
|
||||||
@@ -511,10 +512,14 @@ class CacheViewModel(application: Application) : BaseViewModel(application) {
|
|||||||
chineseConvert = false,
|
chineseConvert = false,
|
||||||
reSegment = false
|
reSegment = false
|
||||||
).toString()
|
).toString()
|
||||||
val title = chapter.getDisplayTitle(
|
val title = chapter.run {
|
||||||
contentProcessor.getTitleReplaceRules(),
|
// 不导出vip标识
|
||||||
useReplace = useReplace
|
isVip = false
|
||||||
)
|
getDisplayTitle(
|
||||||
|
contentProcessor.getTitleReplaceRules(),
|
||||||
|
useReplace = useReplace
|
||||||
|
)
|
||||||
|
}
|
||||||
epubBook.addSection(
|
epubBook.addSection(
|
||||||
title,
|
title,
|
||||||
ResourceUtil.createChapterResource(
|
ResourceUtil.createChapterResource(
|
||||||
|
|||||||
Reference in New Issue
Block a user