Closed Jason-wam closed 2 years ago
我已经设置了Priority为IGNORE,但总是下载所有文件
代码如下
val priorities = arrayOfNulls<Priority>(torrentInfo.numFiles()) for (i in priorities.indices) { priorities[i] = Priority.IGNORE } priorities[0] = Priority.TOP_PRIORITY priorities.forEachIndexed { index, priority -> println("MainActivity: ${torrentInfo.files().fileName(index)} >>> $priority") } val downloadDirectory = FileUtil.getCacheDirectory(this, "download") sessionManager.download(torrentInfo, downloadDirectory, null, priorities, emptyList(), TorrentFlags.SEQUENTIAL_DOWNLOAD)
I just tested with the latest version and it works as intended. What version are you using?
感谢您的回复,我升级到最新版没有再遇到这个问题了
我已经设置了Priority为IGNORE,但总是下载所有文件
代码如下