mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
fix:卷正文标题重复
This commit is contained in:
parent
739f889949
commit
e13c948f09
@ -194,7 +194,7 @@ object BookChapterList {
|
|||||||
if (bookChapter.url.isEmpty()) {
|
if (bookChapter.url.isEmpty()) {
|
||||||
if (bookChapter.isVolume) {
|
if (bookChapter.isVolume) {
|
||||||
bookChapter.url = bookChapter.title
|
bookChapter.url = bookChapter.title
|
||||||
Debug.log(bookSource.bookSourceUrl, "目录${index}(Volume)未获取到url,使用章节标题替代")
|
Debug.log(bookSource.bookSourceUrl, "一级目录${index}未获取到url,使用章节标题替代")
|
||||||
} else {
|
} else {
|
||||||
bookChapter.url = baseUrl
|
bookChapter.url = baseUrl
|
||||||
Debug.log(bookSource.bookSourceUrl, "目录${index}未获取到url,使用baseUrl替代")
|
Debug.log(bookSource.bookSourceUrl, "目录${index}未获取到url,使用baseUrl替代")
|
||||||
|
@ -144,7 +144,7 @@ class CheckSourceService : BaseService() {
|
|||||||
nextChapterUrl = nextChapterUrl,
|
nextChapterUrl = nextChapterUrl,
|
||||||
needSave = false
|
needSave = false
|
||||||
)
|
)
|
||||||
if (content.isBlank()) {
|
if ( !toc.first().isVolume && content.isBlank()) {
|
||||||
throw NoStackTraceException("正文内容为空")
|
throw NoStackTraceException("正文内容为空")
|
||||||
}
|
}
|
||||||
}.timeout(180000L)
|
}.timeout(180000L)
|
||||||
|
Loading…
Reference in New Issue
Block a user