分片数优化

This commit is contained in:
lushunming 2025-07-15 15:35:49 +08:00
parent 01e9b00a36
commit a9f3aa3f74
5 changed files with 5 additions and 5 deletions

View File

@ -53,10 +53,10 @@ object DownloadMT {
infos.clear() infos.clear()
info = CoroutineScope(Dispatchers.IO).async { getInfo(url, headers) }.await() info = CoroutineScope(Dispatchers.IO).async { getInfo(url, headers) }.await()
infos[url] = info infos[url] = info
//支持分片先返回这个1MB块 /* //支持分片先返回这个1MB块
if (info[0] as Int == 206) { if (info[0] as Int == 206) {
return info return info
} }*/
} }
val code = info[0] as Int val code = info[0] as Int

Binary file not shown.

View File

@ -1 +1 @@
848c7528f18727d12cc591e6de830caa 4684441f8b63caf371b0f67118bbae23

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://andoridspidermt.netlify.app/jar/custom_spider.jar;md5;848c7528f18727d12cc591e6de830caa", "spider": "https://andoridspidermt.netlify.app/jar/custom_spider.jar;md5;4684441f8b63caf371b0f67118bbae23",
"lives": [ "lives": [
{ {
"name": "电视直播", "name": "电视直播",

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://ghproxy.net/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/multiThreadkt/jar/custom_spider.jar;md5;848c7528f18727d12cc591e6de830caa", "spider": "https://ghproxy.net/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/multiThreadkt/jar/custom_spider.jar;md5;4684441f8b63caf371b0f67118bbae23",
"lives": [ "lives": [
{ {
"name": "电视直播", "name": "电视直播",