mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-11 06:44:34 -05:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user