This commit is contained in:
Cyberes 2023-11-05 09:37:43 -07:00
parent c47e802eb2
commit f67d5b903f
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ def download_tile(task):
tqdm.write(f'{output_path} is not a PNG, deleting and retrying...')
else:
return row, col, 'exist'
tile_url = f"{base_url}/{row}/{col}".replace('//', '/')
tile_url = f"{base_url}/{row}/{col}".replace('//', '/').replace(':/', '://')
response = requests.get(tile_url, headers=r_headers, proxies=PROXIES if use_proxy else None, timeout=60)
if response.status_code == 200:
if not response.headers.get('Content-Type') == 'image/png':