Move norbert from aiohttp to requests

Also fix streaming (when downloading) in the other classes.
This commit is contained in:
Joscha
2019-04-25 19:15:36 +00:00
parent f0c42ce8ec
commit dfddc93039
4 changed files with 25 additions and 41 deletions

View File

@ -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)