Commit 3adfb9a6 authored by Dimitri Podborski's avatar Dimitri Podborski
Browse files

fix fetching bug

parent 952b1d18
......@@ -39,7 +39,7 @@ SYSTEMS_GROUP_ID = 727 # GitLab Group ID for Systems Subgroup
def download_url(url, save_path, chunk_size=128):
r = requests.get(url, stream=True)
r = requests.get(url, auth=(mdms.MPEG_LOGIN, mdms.MPEG_PWD), stream=True)
with open(save_path, 'wb') as fd:
for chunk in r.iter_content(chunk_size=chunk_size):
fd.write(chunk)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment