fill in the cover according to spec (#571)

This commit is contained in:
Aria Moradi
2023-06-05 16:18:03 +03:30
committed by GitHub
parent dbb9a80ea6
commit a64566c0f3
@@ -212,6 +212,12 @@ class LocalSource : CatalogueSource {
manga.status = obj["status"]?.jsonPrimitive?.intOrNull ?: manga.status
}
// update the cover
val cover = getCoverFile(File("${applicationDirs.localMangaRoot}/${manga.url}"))
if (cover != null && cover.exists()) {
manga.thumbnail_url = cover.absolutePath
}
return Observable.just(manga)
}