From 68c992962baba5d941ff2983dc4d75758b26476a Mon Sep 17 00:00:00 2001 From: laoyuyu <511455842@qq.com> Date: Wed, 23 Sep 2020 20:45:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8D=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E6=96=AD=E7=82=B9=E7=9A=84=E8=BF=9E=E6=8E=A5=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98=EF=BC=8Chttps://github.com?= =?UTF-8?q?/AriaLyy/Aria/issues/771?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DEV_LOG.md | 2 ++ .../java/com/arialyy/aria/core/loader/NormalTTBuilder.java | 7 ++----- .../arialyy/simple/core/download/HttpDownloadModule.java | 5 +++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/DEV_LOG.md b/DEV_LOG.md index 8637e1ea..c51d13ab 100644 --- a/DEV_LOG.md +++ b/DEV_LOG.md @@ -1,4 +1,6 @@ ## 开发日志 + + v_3.8.15 + - 修复不支持断点的连接下载失败问题,https://github.com/AriaLyy/Aria/issues/771 + v_3.8.14 (2020/9/23) - 修复spi机制的兼容问题,https://github.com/AriaLyy/Aria/issues/743 - 增加路径不可以写的判断,下载时,如果路径不可写,将执行失败回调 https://github.com/AriaLyy/Aria/issues/750 diff --git a/PublicComponent/src/main/java/com/arialyy/aria/core/loader/NormalTTBuilder.java b/PublicComponent/src/main/java/com/arialyy/aria/core/loader/NormalTTBuilder.java index 465f9f64..23af6113 100644 --- a/PublicComponent/src/main/java/com/arialyy/aria/core/loader/NormalTTBuilder.java +++ b/PublicComponent/src/main/java/com/arialyy/aria/core/loader/NormalTTBuilder.java @@ -70,12 +70,9 @@ public final class NormalTTBuilder implements IThreadTaskBuilder { private List handleNoSupportBP() { List list = new ArrayList<>(); mStartThreadNum = 1; - + mRecord.isBlock = false; + mRecord.update(); IThreadTask task = createSingThreadTask(mRecord.threadRecords.get(0), 1); - if (task == null) { - ALog.e(TAG, "创建线程任务失败"); - return null; - } list.add(task); return list; } diff --git a/app/src/main/java/com/arialyy/simple/core/download/HttpDownloadModule.java b/app/src/main/java/com/arialyy/simple/core/download/HttpDownloadModule.java index 679e2915..89ad386b 100644 --- a/app/src/main/java/com/arialyy/simple/core/download/HttpDownloadModule.java +++ b/app/src/main/java/com/arialyy/simple/core/download/HttpDownloadModule.java @@ -51,9 +51,10 @@ public class HttpDownloadModule extends BaseViewModule { //String url = AppUtil.getConfigValue(context, HTTP_URL_KEY, defUrl); //String url = "http://fdfs.speedata.cn:9989/group1/M00/00/05/rBGFrl3fdAKAVJwfMtSa9R18wLU139.zip"; //String url = "http://9.9.9.28:8088/files/update.zip"; - String url = "https://y.qq.com/download/import/QQMusic-import-1.2.1.zip"; + //String url = "https://y.qq.com/download/import/QQMusic-import-1.2.1.zip"; + String url = "https://gitee.com/huang-junhua/iptv/raw/master/guonei.m3u8"; //String url = "https://static.runoob.com/images/demo/demo2.jpg"; - String filePath = "/mnt/sdcard/update.zip"; + String filePath = "/mnt/sdcard/xxx.m3u8"; singDownloadInfo = Aria.download(context).getFirstDownloadEntity(url); if (singDownloadInfo == null) {