mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-15 16:54:09 -05:00
Feature/automatically download new chapters (#596)
* Automatically download new chapters * Log queued downloads * Add function to get number of manga chapters
This commit is contained in:
@@ -122,7 +122,7 @@ object DownloadManager {
|
||||
scope.launch {
|
||||
downloaderWatch.sample(1.seconds).collect {
|
||||
val runningDownloaders = downloaders.values.filter { it.isActive }
|
||||
logger.info { "Running: ${runningDownloaders.size}" }
|
||||
logger.info { "Running: ${runningDownloaders.size}, Queued: ${downloadQueue.size}" }
|
||||
if (runningDownloaders.size < MAX_SOURCES_IN_PARAllEL) {
|
||||
downloadQueue.asSequence()
|
||||
.map { it.manga.sourceId.toLong() }
|
||||
|
||||
Reference in New Issue
Block a user