换源不在改变书名和作者

pull/348/head
gedoor 4 years ago
parent 90bc9df2f4
commit fcf7f3720e
  1. 4
      app/src/main/java/io/legado/app/model/webBook/BookInfo.kt

@ -36,14 +36,14 @@ object BookInfo {
} }
Debug.log(bookSource.bookSourceUrl, "┌获取书名") Debug.log(bookSource.bookSourceUrl, "┌获取书名")
BookHelp.formatBookName(analyzeRule.getString(infoRule.name)).let { BookHelp.formatBookName(analyzeRule.getString(infoRule.name)).let {
if (it.isNotEmpty() && canReName) { if (it.isNotEmpty() && (canReName || book.name.isEmpty())) {
book.name = it book.name = it
} }
} }
Debug.log(bookSource.bookSourceUrl, "${book.name}") Debug.log(bookSource.bookSourceUrl, "${book.name}")
Debug.log(bookSource.bookSourceUrl, "┌获取作者") Debug.log(bookSource.bookSourceUrl, "┌获取作者")
BookHelp.formatBookAuthor(analyzeRule.getString(infoRule.author)).let { BookHelp.formatBookAuthor(analyzeRule.getString(infoRule.author)).let {
if (it.isNotEmpty() && canReName) { if (it.isNotEmpty() && (canReName || book.name.isEmpty())) {
book.author = it book.author = it
} }
} }

Loading…
Cancel
Save