Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dimitri Podborski
AutomationTools
Commits
3adfb9a6
Commit
3adfb9a6
authored
Jul 07, 2021
by
Dimitri Podborski
Browse files
fix fetching bug
parent
952b1d18
Changes
1
Hide whitespace changes
Inline
Side-by-side
systems.py
View file @
3adfb9a6
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment