|
@@ -56,15 +56,14 @@ class LocalSource(private val context: Context) : CatalogueSource {
|
|
|
if (cover == null) {
|
|
|
cover = File("${dir.absolutePath}/${manga.url}", COVER_NAME)
|
|
|
}
|
|
|
- if (!cover.exists()) {
|
|
|
- // It might not exist if using the external SD card
|
|
|
- cover.parentFile?.mkdirs()
|
|
|
- input.use {
|
|
|
- cover.outputStream().use {
|
|
|
- input.copyTo(it)
|
|
|
- }
|
|
|
+ // It might not exist if using the external SD card
|
|
|
+ cover.parentFile?.mkdirs()
|
|
|
+ input.use {
|
|
|
+ cover.outputStream().use {
|
|
|
+ input.copyTo(it)
|
|
|
}
|
|
|
}
|
|
|
+ manga.thumbnail_url = cover.absolutePath
|
|
|
return cover
|
|
|
}
|
|
|
|