Downloader: Optimize split tall image (#7435)

This commit is contained in:
AntsyLich
2022-07-02 22:49:50 +06:00
committed by GitHub
parent deaded5af2
commit ff32ab09fb
2 changed files with 57 additions and 18 deletions

View File

@@ -493,7 +493,12 @@ class Downloader(
// check if the original page was previously splitted before then skip.
if (imageFile.name!!.contains("__")) return true
return ImageUtil.splitTallImage(imageFile, imageFilePath)
return try {
ImageUtil.splitTallImage(imageFile, imageFilePath)
} catch (e: Exception) {
logcat(LogPriority.ERROR, e)
false
}
}
/**