mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-12 23:45:05 +02:00
Move norbert from aiohttp to requests
Also fix streaming (when downloading) in the other classes.
This commit is contained in:
parent
f0c42ce8ec
commit
dfddc93039
4 changed files with 25 additions and 41 deletions
|
|
@ -56,5 +56,5 @@ class FfM:
|
|||
orga.add_file(temp_path, new_path)
|
||||
|
||||
def _download(self, url, to_path):
|
||||
with self._session.get(url) as r:
|
||||
with self._session.get(url, stream=True) as r:
|
||||
stream_to_path(r, to_path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue