chore: Show description in offline mode (#1597)

This commit is contained in:
MuhamadSyabitHidayattulloh
2025-09-15 11:02:52 +07:00
committed by GitHub
parent fd0bb57338
commit a95db6ed21

View File

@@ -202,7 +202,7 @@ class DownloadWorker @AssistedInject constructor(
?: error("Cannot obtain remote manga instance")
}
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(
root = destination,
manga = mangaDetails,