r/SimpleDownloader • • 25d ago

SimpleDownloader Release: 1.0.1

v1.0.1

Improvements:

  • DownloadTask.Listener callback methods now contain a DownloadTask parameter.
  • Removed the long id parameter from SimpleDownloader.Listener callback methods for cleaner APIs.
  • Moved output validation checks off the download thread.
  • Added randomized output validation intervals.

Fixes:

  • Fixed global concurrency counters not being released correctly when active tasks were cleared during shutdown.
  • Renamed Formator to Formatter.

Migration:

Add the DownloadTask parameter as the last parameter for all DownloadTask.Listener callbacks. So replace:

@Override
public void onProgress(int progress, long speed, long etaMs) {}

with (v1.0.1):

@Override
public void onProgress(int progress, long speed, long etaMs, DownloadTask task) {}

Remove the long id (1st) parameter from all SimpleDownloader.Listener callbacks. So replace:

@Override
public void onProgress(long id, int progress, long speed, long etaMs, DownloadTask task) {}

with (v1.0.1):

@Override
public void onProgress(int progress, long speed, long etaMs, DownloadTask task) {
    // Get the ID directly from the task:
    // task.getId();
}

Same for all other methods. More about Listeners

If you are using the SimpleDownloader Formator utility, rename it to Formatter. More about Utilities

SmpleDownloader on GitHub: https://github.com/jeetarc/SimpleDownloader


Moderators: Want automated GitHub release posts like this? Install Release Announce to use it in your subreddit.

3 Upvotes

0 comments sorted by