Closed dreamflasher closed 1 year ago
Apparently kwargs to enqueue_file
are pushed down to aiohttp.session.get
, so I tried:
dl.enqueue_file("https://traffic.libsyn.com/secure/revolutionspodcast/7.17-_The_Five_Days_of_Milan_Master.mp3?dest-id=159998", ".", "test.mp3", allow_redirects=True)
Yet, this yields the same error. Apart from it not working, I suggest to include allow_redirects=True
per default in parfive.
I was able to solve this: Not resolving redirects correctly is a bug in aiohttp which can be fixed by using requote_redirect_url=False
in the ClientSession config. I'll create a PR to change this in parfive, although the default should be changed in aiohttp.
Browsers or wget can download this file:
https://traffic.libsyn.com/secure/revolutionspodcast/7.17-_The_Five_Days_of_Milan_Master.mp3?dest-id=159998
Parfive fails to downoad this with the following error:
Code to reproduce: