mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix(source/local): Invalidation is targeting the wrong manga object
This commit is contained in:
parent
4e75e70eee
commit
6990bccd02
1 changed files with 2 additions and 2 deletions
|
@ -206,14 +206,14 @@ class LocalSource(private val context: Context) : CatalogueSource, UnmeteredSour
|
|||
if (comicInfoFile != null)
|
||||
return@withIOContext manga.copy().apply {
|
||||
setMangaDetailsFromComicInfoFile(comicInfoFile.openInputStream(), this)
|
||||
invalidateCover(manga)
|
||||
invalidateCover(this)
|
||||
}
|
||||
|
||||
// TODO: Remove after awhile
|
||||
if (legacyJsonFile != null) {
|
||||
val rt = manga.copy().apply {
|
||||
setMangaDetailsFromLegacyJsonFile(legacyJsonFile.openInputStream(), this)
|
||||
invalidateCover(manga)
|
||||
invalidateCover(this)
|
||||
}
|
||||
val comicInfo = rt.toComicInfo()
|
||||
localMangaDir.createFile(COMIC_INFO_FILE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue