chore: Show description in offline mode (#1597)
This commit is contained in:
committed by
GitHub
parent
fd0bb57338
commit
a95db6ed21
@@ -202,7 +202,7 @@ class DownloadWorker @AssistedInject constructor(
|
|||||||
?: error("Cannot obtain remote manga instance")
|
?: error("Cannot obtain remote manga instance")
|
||||||
}
|
}
|
||||||
val repo = mangaRepositoryFactory.create(manga.source)
|
val repo = mangaRepositoryFactory.create(manga.source)
|
||||||
val mangaDetails = if (manga.chapters.isNullOrEmpty()) repo.getDetails(manga) else manga
|
val mangaDetails = if (manga.chapters.isNullOrEmpty() || manga.description.isNullOrEmpty()) repo.getDetails(manga) else manga
|
||||||
output = LocalMangaOutput.getOrCreate(
|
output = LocalMangaOutput.getOrCreate(
|
||||||
root = destination,
|
root = destination,
|
||||||
manga = mangaDetails,
|
manga = mangaDetails,
|
||||||
|
|||||||
Reference in New Issue
Block a user