Skip to content

Commit cbfd71b

Browse files
committed
增加批量暂停操作
1 parent 3ab9c64 commit cbfd71b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

library/src/main/java/jaygoo/library/m3u8downloader/M3U8Downloader.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,13 @@ public void pause(String url){
145145
}
146146
}
147147

148+
public void pause(List<String> urls){
149+
if (urls == null || urls.size() == 0 || isQuicklyClick())return;
150+
for (String url : urls){
151+
pause(url);
152+
}
153+
}
154+
148155
/**
149156
* 下载任务,如果当前任务在下载列表中则认为是插队,否则入队等候下载
150157
* @param url

0 commit comments

Comments
 (0)