From 0a58c16705d75b807e0d261dcecc44e9e6b3f54f Mon Sep 17 00:00:00 2001 From: sstent Date: Mon, 16 Feb 2026 07:40:35 -0800 Subject: [PATCH] Add URL trimming and fetching logs --- icalendar.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/icalendar.ts b/icalendar.ts index 8d7cc2b..995ff76 100644 --- a/icalendar.ts +++ b/icalendar.ts @@ -154,7 +154,9 @@ async function getSources(): Promise { * Fetches and parses events from a single calendar source */ async function fetchAndParseCalendar(source: Source): Promise { - const response = await fetch(source.url); + const url = source.url.trim(); + console.log(`[iCalendar] Fetching: ${url}`); + const response = await fetch(url); if (!response.ok) { const error = new Error(`HTTP ${response.status}: ${response.statusText}`);