修复40x错误,会继续重试并且无法重试成功的问题 https://github.com/AriaLyy/Aria/issues/619

This commit is contained in:
laoyuyu
2020-02-20 22:01:12 +08:00
parent ad58dce395
commit ea2e27f3e9
4 changed files with 8 additions and 11 deletions

View File

@@ -208,8 +208,8 @@ final public class M3U8InfoTask implements IInfoTask {
|| code == HttpURLConnection.HTTP_CREATED // 201 跳转
|| code == 307) {
handleUrlReTurn(conn, conn.getHeaderField("Location"));
} else if (code == HttpURLConnection.HTTP_NOT_FOUND) {
failDownload("404错误", false);
} else if (code >= HttpURLConnection.HTTP_BAD_REQUEST) {
failDownload("下载失败错误,错误码:" + code, false);
} else {
failDownload(String.format("不支持的响应code: %s", code), true);
}

View File

@@ -135,10 +135,6 @@ final class M3U8VodLoader extends BaseM3U8Loader {
}
}
@Override public boolean isBreak() {
return super.isBreak() || isDestroy;
}
@Override protected void handleTask(Looper looper) {
if (isBreak()) {
return;