download-manager icon indicating copy to clipboard operation
download-manager copied to clipboard

Enforce filename uniqueness

Open ouchadam opened this issue 4 years ago • 0 comments

It's possible to encounter misleading file mismatch errors when the same file names are used as the library will unknowingly append to already downloaded files.

batch_id_1 has a greater current size: 21568 than the total size: 21568 

I encountered this issue when using the default naming with urls that end with the same path and each file has a unique ID

https://foo.bar/1/abc.mp3
https://foo.bar/2/abc.mp3

Currently the library forces IDs to be unique, perhaps filenames should be checked as well?

ouchadam avatar Aug 30 '19 13:08 ouchadam