bitfireAT / ical4android

Allows usage of iCalendar files with the Android calendar provider
GNU General Public License v3.0
18 stars 10 forks source link

Add an option to ignore invalid event when parsing iCalendar #145

Closed SpaceBison closed 5 months ago

SpaceBison commented 5 months ago

This PR aims to allow partially parsing iCalendar resources that may contain broken events instead of failing altogether.

CLAassistant commented 5 months ago

CLA assistant check
All committers have signed the CLA.

rfc2822 commented 5 months ago

What is the context where this is used? Is it Webcal or CalDAV context? Because in CalDAV, there's only one event per file and it would only change that instead of a parser error we would get an empty file.

But when there's an option, there shouldn't be a problem.

SpaceBison commented 5 months ago

What is the context where this is used? Is it Webcal or CalDAV context? Because in CalDAV, there's only one event per file and it would only change that instead of a parser error we would get an empty file.

It's a iCal file accessed by https, so Webcal, I guess. My use case is that I'm using ICSx5 to synchronize it with my device, but it fails if even a single event is missing a required field. If this gets merged I'll probably open a PR with this feature over there. ;)