Cadair / parfive

An asyncio based parallel file downloader for Python 3.8+

Home Page:https://parfive.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Cadair opened this issue · comments

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.

I agree that this would be really helpful, and it would allow me to write a workaround for #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?

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.