@@ -269,21 +269,21 @@ object DownloadManager {
269
269
downloadQueue.add(newDownloadChapter)
270
270
saveDownloadQueue()
271
271
downloadSubscriptionSource.publish(newDownloadChapter)
272
- logger.debug { " Added chapter ${chapter.id} to download queue (${manga.title} | ${chapter.name} )" }
272
+ logger.debug { " Added chapter ${chapter.id} to download queue ($newDownloadChapter )" }
273
273
return newDownloadChapter
274
274
}
275
275
276
276
val retryDownload = downloadChapter?.state == Error
277
277
if (retryDownload) {
278
- logger.debug { " Chapter ${chapter.id} download failed, retry download (${manga.title} | ${chapter.name} )" }
278
+ logger.debug { " Chapter ${chapter.id} download failed, retry download ($downloadChapter )" }
279
279
280
280
downloadChapter?.state = Queued
281
281
downloadChapter?.progress = 0f
282
282
283
283
return downloadChapter
284
284
}
285
285
286
- logger.debug { " Chapter ${chapter.id} already present in queue (${manga.title} | ${chapter.name} )" }
286
+ logger.debug { " Chapter ${chapter.id} already present in queue ($downloadChapter )" }
287
287
return null
288
288
}
289
289
@@ -297,7 +297,7 @@ object DownloadManager {
297
297
}
298
298
299
299
private fun dequeue (chapterDownloads : Set <DownloadChapter >) {
300
- logger.debug { " dequeue ${chapterDownloads.size} chapters [${chapterDownloads.joinToString(separator = " , " ) { " ${it.manga.title} ( ${it.mangaId} ) - ${it.chapter.name} ( ${it.chapter.id} ) " }} ]" }
300
+ logger.debug { " dequeue ${chapterDownloads.size} chapters [${chapterDownloads.joinToString(separator = " , " ) { " $it " }} ]" }
301
301
302
302
downloadQueue.removeAll(chapterDownloads)
303
303
saveDownloadQueue()
@@ -310,7 +310,7 @@ object DownloadManager {
310
310
val download = downloadQueue.find { it.mangaId == mangaId && it.chapterIndex == chapterIndex }
311
311
? : return
312
312
313
- logger.debug { " reorder download ${ download.manga.title} ( ${download.mangaId} ) - ${download.chapter.name} ( ${download.chapter.id} ) from ${downloadQueue.indexOf(download)} to $to " }
313
+ logger.debug { " reorder download $download from ${downloadQueue.indexOf(download)} to $to " }
314
314
315
315
downloadQueue - = download
316
316
downloadQueue.add(to, download)
0 commit comments