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 {
|
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) {
|
||||||
|
|
Loading…
Reference in a new issue