fill in the cover according to spec (#571)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user