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

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

Loading…
Cancel
Save