From c47e802eb22aba490b1b72e0735bbd51de2789c2 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Sat, 4 Nov 2023 21:23:27 -0600 Subject: [PATCH] avoid double slashes in URL --- pkg/thread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/thread.py b/pkg/thread.py index 4eb2411..3a9b89b 100644 --- a/pkg/thread.py +++ b/pkg/thread.py @@ -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}" + tile_url = f"{base_url}/{row}/{col}".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':