fuck android

This commit is contained in:
LagradOst 2023-08-24 21:39:05 +02:00
parent 1a4cbcaea0
commit b38a9b1ff5
1 changed files with 3 additions and 2 deletions

View File

@ -62,6 +62,7 @@ const val DOWNLOAD_CHANNEL_DESCRIPT = "The download notification channel"
object VideoDownloadManager { object VideoDownloadManager {
var maxConcurrentDownloads = 3 var maxConcurrentDownloads = 3
var maxConcurrentConnections = 3
private var currentDownloads = mutableListOf<Int>() private var currentDownloads = mutableListOf<Int>()
private const val USER_AGENT = private const val USER_AGENT =
@ -1568,7 +1569,7 @@ object VideoDownloadManager {
folder ?: "", folder ?: "",
ep.id, ep.id,
startIndex, startIndex,
callback callback, parallelConnections = maxConcurrentConnections
) )
} else { } else {
return downloadThing( return downloadThing(
@ -1579,7 +1580,7 @@ object VideoDownloadManager {
"mp4", "mp4",
tryResume, tryResume,
ep.id, ep.id,
callback callback, parallelConnections = maxConcurrentConnections
) )
} }
} catch (t: Throwable) { } catch (t: Throwable) {