From 2c010e2e1fc5e45d8b761bc0ed58483ee04df543 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonah=20Br=C3=BCchert?= Date: Tue, 7 Jan 2025 01:31:02 +0100 Subject: [PATCH 1/3] fetch: Don't try to extract an empty string from the zip --- src/fetch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fetch.py b/src/fetch.py index 2e07d780..9d9b7d58 100755 --- a/src/fetch.py +++ b/src/fetch.py @@ -181,7 +181,7 @@ def fetch_source(self, dest_path: Path, source: Source) -> bool: server_headers["last-modified"]) content: bytes - if "#" in download_url: + if "#" in download_url and download_url.partition("#")[2]: # if URL contains #, treat the path after # as an embedded ZIP file sub_path = download_url.partition("#")[2] zipfile = ZipFile(io.BytesIO(response.content)) From 0de8285a036c0702773f3b4df287f360c893877b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonah=20Br=C3=BCchert?= Date: Tue, 7 Jan 2025 01:38:47 +0100 Subject: [PATCH 2/3] ca-on: Override broken google drive folder link --- feeds/ca-on.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/feeds/ca-on.json b/feeds/ca-on.json index 1d822ebf..0cf886cc 100644 --- a/feeds/ca-on.json +++ b/feeds/ca-on.json @@ -164,7 +164,8 @@ { "name": "Middlesex-County-Connect", "type": "transitland-atlas", - "transitland-atlas-id": "f-middlesex~county~on~ca" + "transitland-atlas-id": "f-middlesex~county~on~ca", + "url-override": "https://drive.google.com/uc?id=1pCs6qk9nHvP7ff18AJZas2dQVB3kF28l&export=download" }, { "name": "Mid-Pen-Transit", From 60d4afb9a756582996f2dd90754182cb0c6379da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonah=20Br=C3=BCchert?= Date: Tue, 7 Jan 2025 01:40:20 +0100 Subject: [PATCH 3/3] us-mo: add fix for KCATA --- feeds/us-mo.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/feeds/us-mo.json b/feeds/us-mo.json index cf92e8ae..444bb864 100644 --- a/feeds/us-mo.json +++ b/feeds/us-mo.json @@ -19,7 +19,8 @@ { "name": "KCATA", "type": "transitland-atlas", - "transitland-atlas-id": "f-9yu-kcata" + "transitland-atlas-id": "f-9yu-kcata", + "fix": true }, { "name": "KCATA",