diff options
Diffstat (limited to 'email_assistant/plugins/eventbrite.py')
-rw-r--r-- | email_assistant/plugins/eventbrite.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/email_assistant/plugins/eventbrite.py b/email_assistant/plugins/eventbrite.py index 9ef073a..afd869f 100644 --- a/email_assistant/plugins/eventbrite.py +++ b/email_assistant/plugins/eventbrite.py | |||
@@ -44,7 +44,7 @@ class Plugin(plugin.Plugin): | |||
44 | events = [] | 44 | events = [] |
45 | for part in msg.walk(): | 45 | for part in msg.walk(): |
46 | if part.get_content_type() == 'text/html': | 46 | if part.get_content_type() == 'text/html': |
47 | soup = BeautifulSoup(part.get_payload(decode=True).decode('utf8'), 'html.parser') | 47 | soup = BeautifulSoup(part.get_payload(decode=True), 'html.parser') |
48 | data = json.loads(soup.find('script', type="application/ld+json").string) | 48 | data = json.loads(soup.find('script', type="application/ld+json").string) |
49 | 49 | ||
50 | address = data['reservationFor']['location']['address'] | 50 | address = data['reservationFor']['location']['address'] |