simonbengtsson / eventcal

Filter to only include attending and maybe facebook events in ical and google calendar
http://eventcal.flown.io
MIT License
211 stars 8 forks source link

Parsing problem of events with special organization #46

Open silvio opened 1 year ago

silvio commented 1 year ago

Hi.

When I save [this] meeting as a ics file I get following content: (I shortened the content)

BEGIN:VCALENDAR
PRODID:-//Facebook//NONSGML Facebook Events V1.0//EN
X-WR-CALNAME:26. Fallig Open Air 2023
X-PUBLISHED-TTL:PT12H
X-ORIGINAL-URL:https://www.facebook.com/events/679544247113957/
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
BEGIN:VEVENT
DTSTAMP:20230317T114517Z
LAST-MODIFIED:20230317T114517Z
CREATED:20221122T143329Z
SEQUENCE:9925908
ORGANIZER;CN=Fallig Open Air \"Firlefanz Enkirch e.V.\":MAILTO:noreply@facebookmail.com
DTSTART:20230630T160000Z
DTEND:20230630T190000Z
UID:e679544247113957@facebook.com
SUMMARY:26. Fallig Open Air 2023
LOCATION:Fallig Open-Air
URL:https://www.facebook.com/events/679544247113957/
DESCRIPTION:Das 26. Fallig Open Air findet am 
 30.06. und 01.07.2023 in Enkirch/M
 [...]
 DESERT ROCK KIDS\n• DAVE COLLIDE
 \n• ROMANS NAILED IT\n\nhttps://ww
 w.facebook.com/events/679544247113
 957/
CLASS:PUBLIC
STATUS:CONFIRMED
PARTSTAT:NEEDS-ACTION
END:VEVENT
END:VCALENDAR

But when I get this event via eventcal I'll have this in mi ics file:

BEGIN:VEVENT
DTSTAMP:20230317T114517Z
LAST-MODIFIED:20230317T114517Z
CREATED:20221122T143329Z
SEQUENCE:9925908
ORGANIZER;CN="Fallig Open Air \Firlefanz Enkirch e.V.\":MAILTO:noreply@facebookmail.com
DTSTART:20230630T160000Z
DTEND:20230630T190000Z
UID:e679544247113957@facebook.com
SUMMARY:26. Fallig Open Air 2023
LOCATION:Fallig Open-Air
URL:https://www.facebook.com/events/679544247113957/
DESCRIPTION:Das 26. Fallig Open Air findet am
 30.06. und 01.07.2023 in Enkirch/M
 [...]
 DESERT ROCK KIDS\n• DAVE COLLIDE
 \n• ROMANS NAILED IT\n\nhttps://ww
 w.facebook.com/events/679544247113
 957/
CLASS:PUBLIC
STATUS:CONFIRMED
PARTSTAT:TENTATIVE
END:VEVENT

With the wrong quoting on the ORGANIZER line, the event is not anymore valid and the whole file gets invalidated.

Do you see this issue or I'm the only one?

Thanks in Advance Silvio

simonbengtsson commented 1 year ago

Looks like a parsing bug. I'll mark it as a bug. Not sure I will be able to look at this any time soon but would accept a pull request if someone submits a fix.