Improve Downloads Handling (#1387)

* Improve Downloads Handling

* Update known pagecount for downloaded chapters

* Get fresh data for downloadReady

* Format

* Assume downloaded if first page is found

* Filter out ComicInfoFile
This commit is contained in:
Mitchell Syer
2025-05-16 15:57:53 -04:00
committed by GitHub
parent 336f985894
commit 538bd3f126
6 changed files with 94 additions and 51 deletions

View File

@@ -22,6 +22,11 @@ object ChapterDownloadHelper {
index: Int,
): Pair<InputStream, String> = provider(mangaId, chapterId).getImage().execute(index)
fun getImageCount(
mangaId: Int,
chapterId: Int,
): Int = provider(mangaId, chapterId).getImageCount()
fun delete(
mangaId: Int,
chapterId: Int,