We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9307211 commit bd0685fCopy full SHA for bd0685f
pydrive2/apiattr.py
@@ -80,7 +80,10 @@ def __repr__(self):
80
81
def update(self, *args, **kwargs):
82
"""Overwritten method of dictionary."""
83
+ BAD_URL_PREFIX = "https://www.googleapis.comhttps:"
84
for k, v in dict(*args, **kwargs).items():
85
+ if k == "downloadUrl" and v.startswith(BAD_URL_PREFIX):
86
+ v = v.replace(BAD_URL_PREFIX, "https://www.googleapis.com", 1)
87
self[k] = v
88
89
def UpdateMetadata(self, metadata=None):
0 commit comments