Open apiontek opened 1 week ago
Tried this out on a Google Calendar export. VEVENT can contain VALARM that seems to be unhandled. Such items elicit FunctionClauseError:
VEVENT
VALARM
** (FunctionClauseError) no function clause matching in Magical.Parser.EventParser.parse_event/2 (magical 1.0.1) lib/magical/parser/event_parser.ex:13: Magical.Parser.EventParser.parse_event([{"begin", "VALARM", %{}}, {"action", "DISPLAY", %{}}, {"trigger", "-P0DT2H0M0S", %{}}, {"description", "This is an event reminder", %{}}, {"end", "VALARM", %{}}], %Magical.Event{uid: "xxxxxxxxxxxxxxxxxxxxxxxxxx@google.com", summary: "Meeting summary", description: "<a href=\"https://url/for/event\">https://url/for/event</a>", dtstamp: ~U[2024-11-16 17:43:48Z], location: nil, dtstart: ~U[2024-04-04 14:00:00Z], dtend: ~U[2024-04-04 14:30:00Z], class: nil, created: ~U[2024-03-21 20:27:46Z], geo: nil, last_modified: ~U[2024-03-21 20:27:46Z], organizer: nil, priority: nil, seq: nil, status: "CONFIRMED", transp: "OPAQUE", url: nil, recurid: nil, rrule: nil, attach: nil, attendee: nil, categories: nil, comment: nil, contact: nil, exdate: nil, rstatus: nil, related: nil, resources: nil, rdate: nil})
Hey, thank you for the report. I have reproduced it myself and will work to get a fix out shortly. Thank you for using Magical!
Tried this out on a Google Calendar export.
VEVENT
can containVALARM
that seems to be unhandled. Such items elicit FunctionClauseError: