diff --git a/app/src/main/java/io/legado/app/model/webBook/BookInfo.kt b/app/src/main/java/io/legado/app/model/webBook/BookInfo.kt index 37ff4b5e7..7d6c3a94c 100644 --- a/app/src/main/java/io/legado/app/model/webBook/BookInfo.kt +++ b/app/src/main/java/io/legado/app/model/webBook/BookInfo.kt @@ -36,14 +36,14 @@ object BookInfo { } Debug.log(bookSource.bookSourceUrl, "┌获取书名") BookHelp.formatBookName(analyzeRule.getString(infoRule.name)).let { - if (it.isNotEmpty() && canReName) { + if (it.isNotEmpty() && (canReName || book.name.isEmpty())) { book.name = it } } Debug.log(bookSource.bookSourceUrl, "└${book.name}") Debug.log(bookSource.bookSourceUrl, "┌获取作者") BookHelp.formatBookAuthor(analyzeRule.getString(infoRule.author)).let { - if (it.isNotEmpty() && canReName) { + if (it.isNotEmpty() && (canReName || book.name.isEmpty())) { book.author = it } }