[icalendar-dev] How to make a now & next application with an iCal feed
Matt Chisholm
matt-icalendar at mosuki.com
Mon Apr 7 08:28:39 CEST 2008
iCalendar is just a data-interchange format, and all the iCalendar
Python package does is translate between that format and Python
objects.
You'll have to implement querying for the next instance of a repeating
event yourself. (Or there might be another Python library that does
it.)
-matt
On Apr 5 2008, 12:46, Salim Fadhley wrote:
>I have an iCalendar feed that represents the schedule of a broadcast radio
>station. I'd like to perform some sort of query on this feed to tell me what
>the current program is and what program will be starting next.
>
>I've managed to use the icalendar class to iterate over the event objects in
>the file, however is there a convenient way to query the object so that I only
>get objects for which the start and end time is between a time-range?
>
>The issue I have is repeating elements - most items in the calendar are
>repeating elements - so one object might actually represent a whole range of
>show instances in the schedule - how do I be sure I am not missing one.
>
>Here is my public iCal:
>http://www.google.com/calendar/ical/schedule%40resonancefm.com/public/basic.ics
>
>Thanks!
>
>
>
>_______________________________________________
>icalendar-dev mailing list
>icalendar-dev at codespeak.net
>http://codespeak.net/mailman/listinfo/icalendar-dev
More information about the icalendar-dev
mailing list