download-manager
download-manager copied to clipboard
Enforce filename uniqueness
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?