mirror of
https://github.com/gedoor/legado.git
synced 2024-07-19 01:17:25 +08:00
优化
This commit is contained in:
parent
f6d62b4203
commit
548df96f8a
@ -2,7 +2,6 @@ package io.legado.app.help
|
||||
|
||||
import android.net.Uri
|
||||
import android.util.Base64
|
||||
import android.util.Log
|
||||
import androidx.annotation.Keep
|
||||
import io.legado.app.BuildConfig
|
||||
import io.legado.app.constant.AppConst.dateFormat
|
||||
@ -482,7 +481,7 @@ interface JsExtensions {
|
||||
Debug.log(it.getKey(), msg)
|
||||
} ?: Debug.log(msg)
|
||||
if (BuildConfig.DEBUG) {
|
||||
Log.d("SourceDebugLog", msg)
|
||||
Timber.d(msg)
|
||||
}
|
||||
return msg
|
||||
}
|
||||
|
@ -1,10 +1,9 @@
|
||||
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.entities.Book
|
||||
import io.legado.app.utils.*
|
||||
import timber.log.Timber
|
||||
|
||||
object OldBook {
|
||||
|
||||
@ -19,7 +18,7 @@ object OldBook {
|
||||
if (book.bookUrl.isBlank()) continue
|
||||
book.name = jsonItem.readString("$.bookInfoBean.name") ?: ""
|
||||
if (book.bookUrl in existingBooks) {
|
||||
Log.d(AppConst.APP_TAG, "Found existing book: ${book.name}")
|
||||
Timber.d("Found existing book: " + book.name)
|
||||
continue
|
||||
}
|
||||
book.origin = jsonItem.readString("$.tag") ?: ""
|
||||
|
@ -1,7 +1,6 @@
|
||||
package io.legado.app.model.localBook
|
||||
|
||||
import android.net.Uri
|
||||
import android.util.Log
|
||||
import io.legado.app.data.entities.Book
|
||||
import io.legado.app.data.entities.BookChapter
|
||||
import io.legado.app.utils.FileUtils
|
||||
@ -122,7 +121,7 @@ class UmdFile(var book: Book) {
|
||||
chapter.index = index
|
||||
chapter.bookUrl = book.bookUrl
|
||||
chapter.url = index.toString()
|
||||
Log.d("UMD", chapter.url)
|
||||
Timber.d(chapter.url)
|
||||
chapterList.add(chapter)
|
||||
}
|
||||
book.latestChapterTitle = chapterList.lastOrNull()?.title
|
||||
|
Loading…
Reference in New Issue
Block a user