mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-12 15:24:33 -05:00
Optimize Download Queue (#1627)
* Optimize download Queue * Lint * Fix name of DownloadStatus file * Re-add synchronous status fetch
This commit is contained in:
@@ -48,7 +48,7 @@ object Page {
|
||||
|
||||
suspend fun getPageImage(
|
||||
mangaId: Int,
|
||||
chapterIndex: Int,
|
||||
chapterId: Int,
|
||||
index: Int,
|
||||
format: String? = null,
|
||||
progressFlow: ((StateFlow<Int>) -> Unit)? = null,
|
||||
@@ -58,10 +58,8 @@ object Page {
|
||||
transaction {
|
||||
ChapterTable
|
||||
.selectAll()
|
||||
.where {
|
||||
(ChapterTable.sourceOrder eq chapterIndex) and
|
||||
(ChapterTable.manga eq mangaId)
|
||||
}.first()
|
||||
.where { ChapterTable.id eq chapterId }
|
||||
.first()
|
||||
}
|
||||
val chapterId = chapterEntry[ChapterTable.id].value
|
||||
|
||||
|
||||
Reference in New Issue
Block a user