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}`);