question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

expose generating id of BaseDownloadTask

See original GitHub issue

i 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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:10

github_iconTop GitHub Comments

3reactions
Jacksgongcommented, Jun 6, 2017

@mseroczynski I try to release 1.5.2 in a week.

3reactions
Jacksgongcommented, Mar 10, 2017

I will consider doing that in the next version - exposing id setting to the developer.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found