Remove selective downloading of new things and just let auto-download do it's thing.

refs AntennaPod/AntennaPod#1009
This commit is contained in:
Tom Hennen 2015-08-25 20:03:58 -04:00
parent d921ab6f22
commit 93273748b1
1 changed files with 2 additions and 10 deletions

View File

@ -325,16 +325,8 @@ public class DownloadService extends Service {
cancelNotificationUpdater();
unregisterReceiver(cancelDownloadReceiver);
// TODO: I'm not sure this is actually needed.
// We could just invoke the autodownloadUndownloadeditems method
// and it would get everything it's supposed to. By sending it the
// items in newMediaFiles we're overriding the download algorithm,
// which is not something we should probably do.
if (!newMediaFiles.isEmpty()) {
Log.d(TAG, "newMediaFiles exist, autodownload them");
DBTasks.autodownloadUndownloadedItems(getApplicationContext(),
ArrayUtils.toPrimitive(newMediaFiles.toArray(new Long[newMediaFiles.size()])));
}
// start auto download in case anything new has shown up
DBTasks.autodownloadUndownloadedItems(getApplicationContext());
}
@SuppressLint("NewApi")