pull/1125/head
gedoor 4 years ago
parent e0fe7124f9
commit bf7aa99e25
  1. 10
      app/src/main/java/io/legado/app/model/localBook/UmdFile.kt

@ -103,9 +103,9 @@ class UmdFile(var book: Book) {
book.intro = "书籍导入异常"
}else{
val hd = umdBook!!.header
book.name=hd.title;
book.author=hd.author;
book.kind=hd.bookType;
book.name = hd.title
book.author = hd.author
book.kind = hd.bookType
}
}
private fun getContent(chapter: BookChapter): String? {
@ -117,10 +117,10 @@ class UmdFile(var book: Book) {
umdBook?.chapters?.titles?.forEachIndexed { index, _ ->
val title = umdBook!!.chapters.getTitle(index)
val chapter = BookChapter()
chapter.title=title;
chapter.title = title
chapter.index = index
chapter.bookUrl = book.bookUrl
chapter.url = index.toString();
chapter.url = index.toString()
Log.d("UMD",chapter.url)
chapterList.add(chapter)
}

Loading…
Cancel
Save