chore: Show description in offline mode (#1597)

devel
MuhamadSyabitHidayattulloh 8 months ago committed by GitHub
parent fd0bb57338
commit a95db6ed21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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,

Loading…
Cancel
Save