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 81b09ef96..bcd2e8b83 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 @@ -26,12 +26,7 @@ object BookChapterList { var chapterList = arrayListOf() val baseUrl: String = NetworkUtils.getUrl(response) val body: String? = response.body() - body ?: throw Exception( - App.INSTANCE.getString( - R.string.error_get_web_content, - baseUrl - ) - ) + body ?: throw Exception(App.INSTANCE.getString(R.string.error_get_web_content, baseUrl)) SourceDebug.printLog(bookSource.bookSourceUrl, 1, "获取成功:$baseUrl") val tocRule = bookSource.getTocRule() val nextUrlList = arrayListOf(baseUrl) @@ -67,8 +62,9 @@ object BookChapterList { book, bookSource ) - nextUrl = - if (chapterData.nextUrl.isNotEmpty()) chapterData.nextUrl[0] else "" + nextUrl = if (chapterData.nextUrl.isNotEmpty()) + chapterData.nextUrl[0] + else "" chapterData.chapterList?.let { chapterList.addAll(it) }