[Manatoki] Fixed crashing
This commit is contained in:
@@ -144,7 +144,7 @@ suspend fun HttpClient.getItem(
|
||||
}.toString()
|
||||
|
||||
val urls = Jsoup.parse(htmlData)
|
||||
.select("img[^data-]:not([style])")
|
||||
.select("img[^data-]:not([style]):not([^class])")
|
||||
.map {
|
||||
it.attributes()
|
||||
.first { it.key.startsWith("data-") }
|
||||
|
||||
@@ -123,7 +123,7 @@ class NetworkCache(context: Context) : DIAware {
|
||||
|
||||
requests[url] = networkScope.launch {
|
||||
runCatching {
|
||||
if (file.exists()) {
|
||||
if (!force && file.exists()) {
|
||||
progressFlow.emit(Float.POSITIVE_INFINITY)
|
||||
} else {
|
||||
cacheDir.mkdirs()
|
||||
|
||||
Reference in New Issue
Block a user