|
@@ -492,11 +492,11 @@ def cloud_download(ad_key=None):
|
|
|
filename = os.path.basename(ad['path'])
|
|
|
out_file = os.path.join(AUDIOS_PATH, filename)
|
|
|
url = '{}/{}'.format(cloud_base_url, ad['path'])
|
|
|
- response = requests.get(url)
|
|
|
|
|
|
if(os.path.isfile(out_file)):
|
|
|
return out_file, md5_checksum(out_file)
|
|
|
|
|
|
+ response = requests.get(url)
|
|
|
if response.status_code == 200:
|
|
|
hashes = response.headers['x-goog-hash']
|
|
|
hashes = hashes.split(',')
|