I am looking for a library (preferably Python, but the language does not really matter) that is able to repeat repeated iCal events and process specific instances automatically.
The iCal file I'm working with contains repeating events (for example:) RRULE:FREQ=WEEKLY;UNTIL=20150614;BYDAY=MO,TU,WE,TH,FR. These recurring events sometimes have specific instances: the summary can be changed for one event or one event can be deleted. This result is VEVENTin the iCal file with properties of type RECURRENCE-IDand EXDATE.
Most of the iCal libraries I've looked at (python-icalendar, ical.js, php iCalCreator) will help you parse the parsing, but just return a separate (and ungrouped) VEVENTfor all specific instances. This means that you will have to compare them with the corresponding ones RRULEyourself, and also determine how this affects RRULE.
So, let's say a recurring event that occurs on Monday-Friday from 9:00 to 10:00. But with a specific instance on Friday (10: 00-11: 00) and a deleted instance on Wednesday. In this case, I would like to repeat the events like this:
[
{start: '2015-06-15 09:00:00', end: '2015-06-15 10:00:00'},
{start: '2015-06-16 09:00:00', end: '2015-06-16 10:00:00'},
{start: '2015-06-18 09:00:00', end: '2015-06-18 10:00:00'},
{start: '2015-06-19 10:00:00', end: '2015-06-19 11:00:00'},
]
Intru source
share