分片数优化
This commit is contained in:
parent
17b714cfe7
commit
605a501496
|
|
@ -155,9 +155,9 @@ object DownloadMT {
|
|||
|
||||
fun generatePart(rangeObj: Map<String?, String>, total: String): List<LongArray> {
|
||||
val totalSize = total.toLong()
|
||||
//超过10GB,分块是80Mb,不然是16MB
|
||||
//超过10GB,分块是32Mb,不然是16MB
|
||||
val partSize =
|
||||
if (totalSize > 8L * 1024L * 1024L * 1024L * 10L) 1024 * 1024 * 8 * 10L else 1024 * 1024 * 8 * 2L
|
||||
if (totalSize > 1024L * 1024L * 1024L * 10L) 1024 * 1024 * 8 * 4L else 1024 * 1024 * 8 * 2L
|
||||
|
||||
var start = rangeObj["start"]!!.toLong()
|
||||
var end =
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
80eb82a9d6f6bc12bb62bff91dc94393
|
||||
153fe041f1a364fef8f53545dd52588a
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"spider": "https://andoridspidermt.netlify.app/jar/custom_spider.jar;md5;80eb82a9d6f6bc12bb62bff91dc94393",
|
||||
"spider": "https://andoridspidermt.netlify.app/jar/custom_spider.jar;md5;153fe041f1a364fef8f53545dd52588a",
|
||||
"lives": [
|
||||
{
|
||||
"name": "电视直播",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"spider": "https://ghproxy.net/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/multiThreadkt/jar/custom_spider.jar;md5;80eb82a9d6f6bc12bb62bff91dc94393",
|
||||
"spider": "https://ghproxy.net/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/multiThreadkt/jar/custom_spider.jar;md5;153fe041f1a364fef8f53545dd52588a",
|
||||
"lives": [
|
||||
{
|
||||
"name": "电视直播",
|
||||
|
|
|
|||
Loading…
Reference in New Issue