This commit is contained in:
Jobobby04 2021-03-18 21:55:25 -04:00
parent aac2fcb7d4
commit a1a9b4b812
3 changed files with 3 additions and 7 deletions

View File

@ -229,7 +229,7 @@ class EHentai(
} else {
parsedLocation.queryParameter(REVERSE_PARAM)!!.toBoolean()
}
Pair(parsedMangas, hasNextPage)
parsedMangas to hasNextPage
}
private fun getGenre(element: Element? = null, genreString: String? = null): String? {
@ -879,8 +879,7 @@ class EHentai(
stringBuilder.append(" ")
}
xLogD(stringBuilder.toString())
return stringBuilder.toString().trim()
return stringBuilder.toString().trim().also { xLogD(it) }
}
data class AdvSearchEntry(val search: Pair<String, String>, val exclude: Boolean)

View File

@ -215,7 +215,6 @@ class MangaDex(delegate: HttpSource, val context: Context) :
).await().closeQuietly()
}
val response = client.newCall(GET(MdUtil.apiUrl + MdUtil.isLoggedInApi, headers)).await()
withIOContext { response.body?.string() }.let { jsonData ->

View File

@ -17,7 +17,6 @@ fun Any.xLog(logLevel: LogLevel, log: String) = xLog().log(logLevel.int, log)
fun Any.xLogJson(log: String) = xLog().json(log)
fun Any.xLogXML(log: String) = xLog().xml(log)
fun Any.xLogE(log: String, e: Throwable) = xLogStack().e(log, e)
fun Any.xLogW(log: String, e: Throwable) = xLogStack().w(log, e)
fun Any.xLogD(log: String, e: Throwable) = xLogStack().d(log, e)
@ -70,7 +69,6 @@ sealed class LogLevel(val int: Int, val androidLevel: Int) {
}
}
@Deprecated("Use proper throwable function", ReplaceWith("""xLogE("", log)"""))
fun Any.xLogE(log: Throwable) = xLogStack().e(log)
@ -84,4 +82,4 @@ fun Any.xLogD(log: Throwable) = xLogStack().d(log)
fun Any.xLogI(log: Throwable) = xLogStack().i(log)
@Deprecated("Use proper throwable function", ReplaceWith("""xLog(logLevel, "", log)"""))
fun Any.xLog(logLevel: LogLevel, log: Throwable) = xLogStack().log(logLevel.int, log)
fun Any.xLog(logLevel: LogLevel, log: Throwable) = xLogStack().log(logLevel.int, log)