pull/1403/head
gedoor 3 years ago
parent f6d62b4203
commit 548df96f8a
  1. 3
      app/src/main/java/io/legado/app/help/JsExtensions.kt
  2. 5
      app/src/main/java/io/legado/app/help/storage/OldBook.kt
  3. 3
      app/src/main/java/io/legado/app/model/localBook/UmdFile.kt

@ -2,7 +2,6 @@ package io.legado.app.help
import android.net.Uri import android.net.Uri
import android.util.Base64 import android.util.Base64
import android.util.Log
import androidx.annotation.Keep import androidx.annotation.Keep
import io.legado.app.BuildConfig import io.legado.app.BuildConfig
import io.legado.app.constant.AppConst.dateFormat import io.legado.app.constant.AppConst.dateFormat
@ -482,7 +481,7 @@ interface JsExtensions {
Debug.log(it.getKey(), msg) Debug.log(it.getKey(), msg)
} ?: Debug.log(msg) } ?: Debug.log(msg)
if (BuildConfig.DEBUG) { if (BuildConfig.DEBUG) {
Log.d("SourceDebugLog", msg) Timber.d(msg)
} }
return msg return msg
} }

@ -1,10 +1,9 @@
package io.legado.app.help.storage package io.legado.app.help.storage
import android.util.Log
import io.legado.app.constant.AppConst
import io.legado.app.data.appDb import io.legado.app.data.appDb
import io.legado.app.data.entities.Book import io.legado.app.data.entities.Book
import io.legado.app.utils.* import io.legado.app.utils.*
import timber.log.Timber
object OldBook { object OldBook {
@ -19,7 +18,7 @@ object OldBook {
if (book.bookUrl.isBlank()) continue if (book.bookUrl.isBlank()) continue
book.name = jsonItem.readString("$.bookInfoBean.name") ?: "" book.name = jsonItem.readString("$.bookInfoBean.name") ?: ""
if (book.bookUrl in existingBooks) { if (book.bookUrl in existingBooks) {
Log.d(AppConst.APP_TAG, "Found existing book: ${book.name}") Timber.d("Found existing book: " + book.name)
continue continue
} }
book.origin = jsonItem.readString("$.tag") ?: "" book.origin = jsonItem.readString("$.tag") ?: ""

@ -1,7 +1,6 @@
package io.legado.app.model.localBook package io.legado.app.model.localBook
import android.net.Uri import android.net.Uri
import android.util.Log
import io.legado.app.data.entities.Book import io.legado.app.data.entities.Book
import io.legado.app.data.entities.BookChapter import io.legado.app.data.entities.BookChapter
import io.legado.app.utils.FileUtils import io.legado.app.utils.FileUtils
@ -122,7 +121,7 @@ class UmdFile(var book: Book) {
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) Timber.d(chapter.url)
chapterList.add(chapter) chapterList.add(chapter)
} }
book.latestChapterTitle = chapterList.lastOrNull()?.title book.latestChapterTitle = chapterList.lastOrNull()?.title

Loading…
Cancel
Save