lingochamp / okdownload

A Reliable, Flexible, Fast and Powerful download engine.
Apache License 2.0
5.17k stars 773 forks source link

Problem resuming download when the url is different #441

Open tidj91 opened 3 years ago

tidj91 commented 3 years ago

OkDownload Version

com.liulishuo.okdownload:okdownload:1.0.7

Problem Describe

Hi, I'm trying to resume my download of a file, the problem is that the url is changing because of my API. The api concatenate a token to the url. So it starts the download from the begining. I tried using the same url with the same token and the resume was working, so the problem comes from here. On the first version (FileDownloader), we had the posibility to use FileDownloadHelper.IdGenerator to implement our own id generator. Is it possible with this lib ?

image

I don't know if the problem comes from here, by checking if the url is the same. (comes from the file BreakpointInfo)

Thanks

Log

There is the whole log from LogCat when I occur the problem(I know we can use this tool to let log more readable):

kutukoff commented 3 years ago

Same issue