From d92a2eb735cc4dfa7a32b6c1b10701d65afb99c0 Mon Sep 17 00:00:00 2001 From: AndCycle Date: Wed, 10 Jun 2020 22:25:56 +0800 Subject: [PATCH] Add url event attribute --- icalevents/icalparser.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/icalevents/icalparser.py b/icalevents/icalparser.py index 3d383d0..096021a 100644 --- a/icalevents/icalparser.py +++ b/icalevents/icalparser.py @@ -51,6 +51,7 @@ class Event: self.organizer = None self.categories = None self.status = None + self.url = None def time_left(self, time=None): """ @@ -142,6 +143,7 @@ class Event: ne.created = self.created ne.last_modified = self.last_modified ne.categories = self.categories + ne.url = self.url return ne @@ -231,6 +233,9 @@ def create_event(component, tz=UTC): if component.get("status"): event.status = component.get("status") + if component.get("url"): + event.url = component.get("url") + return event