|
|
@ -120,8 +120,7 @@ data class Book( |
|
|
|
return name.replace(AppPattern.fileNameRegex, "") + MD5Utils.md5Encode16(bookUrl) |
|
|
|
return name.replace(AppPattern.fileNameRegex, "") + MD5Utils.md5Encode16(bookUrl) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fun toSearchBook(): SearchBook { |
|
|
|
fun toSearchBook() = SearchBook( |
|
|
|
return SearchBook( |
|
|
|
|
|
|
|
name = name, |
|
|
|
name = name, |
|
|
|
author = author, |
|
|
|
author = author, |
|
|
|
kind = kind, |
|
|
|
kind = kind, |
|
|
@ -140,7 +139,6 @@ data class Book( |
|
|
|
this.infoHtml = this@Book.infoHtml |
|
|
|
this.infoHtml = this@Book.infoHtml |
|
|
|
this.tocHtml = this@Book.tocHtml |
|
|
|
this.tocHtml = this@Book.tocHtml |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fun changeTo(newBook: Book) { |
|
|
|
fun changeTo(newBook: Book) { |
|
|
|
newBook.group = group |
|
|
|
newBook.group = group |
|
|
|