Cadair / parfive

An asyncio based parallel file downloader for Python 3.8+
https://parfive.readthedocs.io/
MIT License
51 stars 24 forks source link

Propagate the URL which is associated with each file path through to the Results object #71

Closed Cadair closed 7 months ago

Cadair commented 3 years ago

It would be useful if the Results object had a property which mapped input URL to output filename, as the filename is normally provided by the Content-Disposition headers on the download request, so is not known to the user at the point they call download.

dreamflasher commented 1 year ago

I agree that this would be really helpful, and it would allow me to write a workaround for https://github.com/Cadair/parfive/issues/122 -- but... I am already getting something back in the results? The completed result lists shows me a list of files, and they do exist on disk. What's missing is the origin URL, that would be helpful, too... but I wonder if this ticket might already be solved?

Cadair commented 1 year ago

I am not entirely sure how this would help you work around #122, this issue is to be able to know which URL generated which completed file.