33 |
|
end_time = pacific.localize(event.decoded('dtend')) |
34 |
|
where = event.decoded('location') |
35 |
|
|
36 |
+ |
eid = re.compile(r'http://www\.facebook\.com/event\.php\?eid=%s$' % re.escape(id)) |
37 |
+ |
|
38 |
+ |
if not eid.search(content): |
39 |
+ |
content += '\n\nhttp://www.facebook.com/event.php?eid=%s' % id |
40 |
+ |
|
41 |
|
if not entries: |
42 |
|
entry = gdata.calendar.CalendarEventEntry() |
43 |
|
entry.title = atom.Title(text = title) |
55 |
|
entry.where.append(gdata.calendar.Where(value_string = where)) |
56 |
|
calendar.InsertEvent(entry, '/calendar/feeds/default/private/full') |
57 |
|
else: |
53 |
– |
eid = re.compile(r'http://www\.facebook\.com/event\.php\?eid=%s$' % re.escape(id)) |
54 |
– |
|
58 |
|
for index, entry in enumerate(filter(lambda entry: eid.search(entry.content.text), entries)): |
59 |
|
if index == 0: |
60 |
|
entry.title.text = title |