Browse Source

ICS: fix summary

boyska 6 years ago
parent
commit
24eb0286dc
1 changed files with 4 additions and 2 deletions
  1. 4 2
      plugins/talks.py

+ 4 - 2
plugins/talks.py

@@ -118,7 +118,9 @@ def get_talk_data(talkname):
         data.setdefault('nooverlap', [])
         if 'title' not in data:
             logging.warn("Talk <{}> has no `title` field".format(talkname))
-            data['title'] = talkname
+            data['title'] = unicode(talkname)
+        else:
+            data['title'] = unicode(data['title'])
         if 'text' not in data:
             logging.warn("Talk <{}> has no `text` field".format(talkname))
             data['text'] = ''
@@ -373,7 +375,7 @@ def talk_to_ics(talk):
     e = ics.Event(
         uid="%s@%d.hackmeeting.org" % (talk['id'],
                                          get_global_data()['startdate'].year),
-        name=talk['id'],
+        name=unidecode.unidecode(talk['title']),
         begin=talk['time'],
         duration=datetime.timedelta(minutes=talk['duration']),
         transparent=True,