|
|
|
@ -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 |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|