增加立即恢复任务的接口,正常来说,当执行队列满时,调用恢复任务接口,只能将任务放到缓存队列中。如果希望调用恢复接口,马上进入执行队列,需要调用resume(true)这个重载方法。
修复一个非分块模式下,无法恢复下载的问题 增加M3U8加密密钥的下载地址转换器 https://github.com/AriaLyy/Aria/issues/522
This commit is contained in:
@@ -71,15 +71,15 @@ public class CommonUtil {
|
||||
ALog.e(TAG, "sql语句表达式不能为null");
|
||||
return false;
|
||||
}
|
||||
if (expression.length == 1) {
|
||||
ALog.e(TAG, String.format("表达式需要写入参数,参数信息:%s", Arrays.toString(expression)));
|
||||
return false;
|
||||
}
|
||||
//if (expression.length == 1) {
|
||||
// ALog.e(TAG, String.format("表达式需要写入参数,参数信息:%s", Arrays.toString(expression)));
|
||||
// return false;
|
||||
//}
|
||||
String where = expression[0];
|
||||
if (!where.contains("?")) {
|
||||
ALog.e(TAG, String.format("请在where语句的'='后编写?,参数信息:%s", Arrays.toString(expression)));
|
||||
return false;
|
||||
}
|
||||
//if (!where.contains("?")) {
|
||||
// ALog.e(TAG, String.format("请在where语句的'='后编写?,参数信息:%s", Arrays.toString(expression)));
|
||||
// return false;
|
||||
//}
|
||||
Pattern pattern = Pattern.compile("\\?");
|
||||
Matcher matcher = pattern.matcher(where);
|
||||
int count = 0;
|
||||
|
||||
Reference in New Issue
Block a user