diff --git a/app/src/main/java/com/github/catvod/utils/DownloadMT.kt b/app/src/main/java/com/github/catvod/utils/DownloadMT.kt index 22030234..be923c94 100644 --- a/app/src/main/java/com/github/catvod/utils/DownloadMT.kt +++ b/app/src/main/java/com/github/catvod/utils/DownloadMT.kt @@ -14,6 +14,7 @@ import kotlinx.coroutines.launch import kotlinx.coroutines.runBlocking import okhttp3.Response import org.apache.commons.lang3.StringUtils +import java.io.ByteArrayInputStream import java.io.InputStream import java.io.SequenceInputStream import java.util.Vector @@ -88,8 +89,8 @@ object DownloadMT { // 存储执行结果的List val jobs = mutableListOf() - val channels = List(threadNum) { Channel() } - var inputStreams = mutableListOf() + + val inputStreams = MutableList(threadNum) { ByteArrayInputStream( ByteArray(1024)) } for ((index, part) in partList.withIndex()) { val newRange = "bytes=" + part[0] + "-" + part[1] diff --git a/jar/custom_spider.jar b/jar/custom_spider.jar index 99f5e4b8..759036a8 100644 Binary files a/jar/custom_spider.jar and b/jar/custom_spider.jar differ diff --git a/jar/custom_spider.jar.md5 b/jar/custom_spider.jar.md5 index 0a330347..2eee87dd 100644 --- a/jar/custom_spider.jar.md5 +++ b/jar/custom_spider.jar.md5 @@ -1 +1 @@ -5cb212c16ee71528fd75f507a5aa91d4 +0fdb7b55ab057fc9f8d455bf438ec1fd diff --git a/json/test.json b/json/test.json index 171f0877..27974391 100644 --- a/json/test.json +++ b/json/test.json @@ -1,5 +1,5 @@ { - "spider": "https://ghproxy.net/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/multiThreadkt/jar/custom_spider.jar;md5;5cb212c16ee71528fd75f507a5aa91d4", + "spider": "https://ghproxy.net/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/multiThreadkt/jar/custom_spider.jar;md5;0fdb7b55ab057fc9f8d455bf438ec1fd", "lives": [ { "name": "电视直播",