diff --git a/Aria/src/main/java/com/arialyy/aria/core/download/m3u8/M3U8Delegate.java b/Aria/src/main/java/com/arialyy/aria/core/download/m3u8/M3U8Delegate.java index 9c20ee70..e727617b 100644 --- a/Aria/src/main/java/com/arialyy/aria/core/download/m3u8/M3U8Delegate.java +++ b/Aria/src/main/java/com/arialyy/aria/core/download/m3u8/M3U8Delegate.java @@ -41,7 +41,7 @@ public class M3U8Delegate extends BaseDelegate } /** - * 设置文件长度,由于m3u8协议的特殊性,你需要设置文件长度才能获取到正确的下载进度百分比 + * 设置文件长度,由于m3u8协议的特殊性质,你需要设置文件长度才能获取到正确的下载进度百分比 * * @param fileSize 文件长度 */ diff --git a/Aria/src/main/java/com/arialyy/aria/core/download/m3u8/M3U8FileInfoThread.java b/Aria/src/main/java/com/arialyy/aria/core/download/m3u8/M3U8FileInfoThread.java index daa06461..36f1a5fd 100644 --- a/Aria/src/main/java/com/arialyy/aria/core/download/m3u8/M3U8FileInfoThread.java +++ b/Aria/src/main/java/com/arialyy/aria/core/download/m3u8/M3U8FileInfoThread.java @@ -70,6 +70,7 @@ public class M3U8FileInfoThread implements Runnable { ConnectionHelp.setConnectParam(mTaskDelegate, conn); conn.setConnectTimeout(mConnectTimeOut); conn.connect(); + Map> head = conn.getHeaderFields(); handleConnect(conn); } catch (IOException e) { e.printStackTrace(); diff --git a/app/src/main/java/com/arialyy/simple/core/download/SingleTaskActivity.java b/app/src/main/java/com/arialyy/simple/core/download/SingleTaskActivity.java index 30ea9537..012e5ae3 100644 --- a/app/src/main/java/com/arialyy/simple/core/download/SingleTaskActivity.java +++ b/app/src/main/java/com/arialyy/simple/core/download/SingleTaskActivity.java @@ -256,7 +256,7 @@ public class SingleTaskActivity extends BaseActivity { Toast.LENGTH_SHORT).show(); getBinding().setStateStr(getString(R.string.re_start)); getBinding().setSpeed(""); - ALog.d(TAG, "md5: " + CommonUtil.getFileMD5(new File(task.getDownloadPath()))); + ALog.d(TAG, "md5: " + CommonUtil.getFileMD5(new File(task.getFilePath()))); } }