mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
fuck android
This commit is contained in:
parent
1a4cbcaea0
commit
b38a9b1ff5
1 changed files with 3 additions and 2 deletions
|
@ -62,6 +62,7 @@ const val DOWNLOAD_CHANNEL_DESCRIPT = "The download notification channel"
|
|||
|
||||
object VideoDownloadManager {
|
||||
var maxConcurrentDownloads = 3
|
||||
var maxConcurrentConnections = 3
|
||||
private var currentDownloads = mutableListOf<Int>()
|
||||
|
||||
private const val USER_AGENT =
|
||||
|
@ -1568,7 +1569,7 @@ object VideoDownloadManager {
|
|||
folder ?: "",
|
||||
ep.id,
|
||||
startIndex,
|
||||
callback
|
||||
callback, parallelConnections = maxConcurrentConnections
|
||||
)
|
||||
} else {
|
||||
return downloadThing(
|
||||
|
@ -1579,7 +1580,7 @@ object VideoDownloadManager {
|
|||
"mp4",
|
||||
tryResume,
|
||||
ep.id,
|
||||
callback
|
||||
callback, parallelConnections = maxConcurrentConnections
|
||||
)
|
||||
}
|
||||
} catch (t: Throwable) {
|
||||
|
|
Loading…
Reference in a new issue