fix:卷标题重复

This commit is contained in:
Xwite 2022-01-11 17:36:12 +08:00
parent a69e9f5f9e
commit 2973ce9397
2 changed files with 4 additions and 5 deletions

View File

@ -262,9 +262,8 @@ object WebBook {
return bookChapter.url
}
if(bookChapter.isVolume && bookChapter.url == bookChapter.title) {
//不返回空值,是为了过书源检测
Debug.log(bookSource.bookSourceUrl, "⇒一级目录正文,使用章节标题:${bookChapter.title}")
return bookChapter.title
Debug.log(bookSource.bookSourceUrl, "⇒一级目录获取链接为空,正文返回空白")
return ""
}
return if (bookChapter.url == book.bookUrl && !book.tocHtml.isNullOrEmpty()) {
BookContent.analyzeContent(

View File

@ -332,7 +332,7 @@ object ChapterProvider {
}
lineIndex == layout.lineCount - 1 -> {
//最后一行
textLine.text = if(isVolumeTitle) "" else "$words\n"
textLine.text = "$words\n"
isLastLine = true
//标题居中
val startX = if (isTitle && ReadBookConfig.titleMode == 1 || isVolumeTitle)
@ -349,7 +349,7 @@ object ChapterProvider {
}
else -> {
//中间行
textLine.text = if(isVolumeTitle) "" else words
textLine.text = words
addCharsToLineMiddle(
absStartX,
textLine,