From 5d81eb3233ac72c2fdc9b9a7511cfb93dcf309f5 Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 2 Aug 2019 11:13:03 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/model/webbook/BookChapterList.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/io/legado/app/model/webbook/BookChapterList.kt b/app/src/main/java/io/legado/app/model/webbook/BookChapterList.kt index 3bd4be757..9f093df7a 100644 --- a/app/src/main/java/io/legado/app/model/webbook/BookChapterList.kt +++ b/app/src/main/java/io/legado/app/model/webbook/BookChapterList.kt @@ -116,8 +116,11 @@ object BookChapterList { } SourceDebug.printLog(bookSource.bookSourceUrl, 1, TextUtils.join(",", nextUrlList), printLog) } + SourceDebug.printLog(bookSource.bookSourceUrl, 1, "解析目录列表", printLog) val elements = analyzeRule.getElements(listRule) + SourceDebug.printLog(bookSource.bookSourceUrl, 1, "目录数${elements.size}", printLog) if (elements.isNotEmpty()) { + SourceDebug.printLog(bookSource.bookSourceUrl, 1, "获取目录", printLog) val nameRule = analyzeRule.splitSourceRule(tocRule.chapterName ?: "") val urlRule = analyzeRule.splitSourceRule(tocRule.chapterUrl ?: "") for (item in elements) { @@ -131,6 +134,7 @@ object BookChapterList { chapterList.add(bookChapter) } } + SourceDebug.printLog(bookSource.bookSourceUrl, 1, "${chapterList[0].title}${chapterList[0].url}", printLog) } return ChapterData(chapterList, nextUrlList) }