Skip to content

Commit

Permalink
Merge pull request #50 from readicculus/readicculus-patch-1
Browse files Browse the repository at this point in the history
Fix google drive test data download url
  • Loading branch information
readicculus committed Mar 26, 2024
2 parents 7bc06ed + 43aa6a2 commit ca569cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ def save_response_content(response, destination):
if chunk: # filter out keep-alive new chunks
f.write(chunk)

URL = "https://drive.google.com/uc?export=download"
URL = "https://drive.usercontent.google.com/download?"

session = requests.Session()

response = session.get(URL, params={'id': id}, stream=True)
response = session.get(URL, params={'id': id, 'confirm': 'yy'}, stream=True)
token = get_confirm_token(response)

if token:
Expand Down

0 comments on commit ca569cb

Please sign in to comment.