expose generating id of BaseDownloadTask
See original GitHub issuei request my download Urls from a Webservice which adds hashcodes as parameters (url availability is timeboxed from server) and additional information to the Url.
therefore if i’m requesting the same file two times, the url is (sightly) different. currently the download id is generated from url
and path
which prevents me of checking if file the file is already downloading.
so the goal would be to override the Generation of the id (e.g. then strip the hashcodes out of the url to have a “consistent” id for the same file)
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:10
Top Results From Across the Web
okdownload/BaseDownloadTask.java at master - GitHub
A Reliable, Flexible, Fast and Powerful download engine. - okdownload/BaseDownloadTask.java at master · lingochamp/okdownload.
Read more >Exposing database IDs - security risk? - Stack Overflow
If I'm using sequential numbers (usually for performance on some DBs) as IDs I like generating a UUID token for each entry as...
Read more >CHANGELOG.md · case/okhttp3 · mirrors / lingochamp ... - GitCode
Add FileDownloadUtils#generateId(url:String, path:String, pathAsDirectory:boolean) : Generate a Download Id which can be recognized in FileDownloader.
Read more >Java源代码 - 摸瓜
... PrintFormatPattern.java; PrintFormat.java; Identifier.java; Subst.java ... LostServiceConnectedHandler.java; QueuesHandler.java; BaseDownloadTask.java ...
Read more >Algorithm之常用算法 - e想行空
在工作空间目录执行 cordova create MyApp 创建一个Cordova项目 ... protected void pending(BaseDownloadTask task, long soFarBytes, ... EXPOSE 9303 # 设置参数
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@mseroczynski I try to release 1.5.2 in a week.
I will consider doing that in the next version - exposing id setting to the developer.