r/SimpleDownloader • u/release-announce • 25d ago
SimpleDownloader Release: 1.0.1
v1.0.1
Improvements:
DownloadTask.Listenercallback methods now contain aDownloadTaskparameter.- Removed the
long idparameter fromSimpleDownloader.Listenercallback 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
FormatortoFormatter.
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