Skip to content

Commit

Permalink
fill in the cover according to spec (#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
AriaMoradi authored Jun 5, 2023
1 parent dbb9a80 commit a64566c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit a64566c

Please sign in to comment.