Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
Fixing download bug. 
This closes issue #138
  • Loading branch information
sbassi authored Jun 17, 2022
1 parent 55be153 commit 6551dfa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion allofplos/corpus/gdrive.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ def download_file_from_google_drive(id, filename, key=None, directory=None,
if not os.path.isfile(file_path):
session = requests.Session()

response = session.get(GDRIVE_URL, params={'id': id, 'resourcekey': key, 'authuser': '0', 'export': 'download'}, stream=True)
response = session.get(GDRIVE_URL, params={'id': id, 'resourcekey': key, 'authuser': '0',
'export': 'download', 'confirm': 't'}, stream=True)
token = get_confirm_token(response)
if token:
params = {'id': id, 'confirm': token, 'resourcekey': key, 'authuser': '0', 'export': 'download'}
Expand Down

0 comments on commit 6551dfa

Please sign in to comment.