Merge pull request #3624 from ByteHamster/fix-download-order
Fix download order list
This commit is contained in:
commit
f7dc2d6a7d
|
@ -459,15 +459,12 @@ public class DownloadService extends Service {
|
||||||
Downloader downloader = downloaderFactory.create(request);
|
Downloader downloader = downloaderFactory.create(request);
|
||||||
if (downloader != null) {
|
if (downloader != null) {
|
||||||
numberOfDownloads.incrementAndGet();
|
numberOfDownloads.incrementAndGet();
|
||||||
// smaller rss feeds before bigger media files
|
|
||||||
if (request.getFeedfileType() == Feed.FEEDFILETYPE_FEED) {
|
if (request.getFeedfileType() == FeedMedia.FEEDFILETYPE_FEEDMEDIA
|
||||||
downloads.add(0, downloader);
|
&& isEnqueued(request, itemsEnqueued)) {
|
||||||
} else {
|
|
||||||
if (isEnqueued(request, itemsEnqueued)) {
|
|
||||||
request.setMediaEnqueued(true);
|
request.setMediaEnqueued(true);
|
||||||
}
|
}
|
||||||
downloads.add(downloader);
|
downloads.add(downloader);
|
||||||
}
|
|
||||||
downloadExecutor.submit(downloader);
|
downloadExecutor.submit(downloader);
|
||||||
|
|
||||||
postDownloaders();
|
postDownloaders();
|
||||||
|
|
Loading…
Reference in New Issue