summaryrefslogtreecommitdiff
path: root/email_assistant/plugins/eventbrite.py
diff options
context:
space:
mode:
authorJames E. Blair <corvus@gnu.org>2019-06-09 10:05:11 -0700
committerJames E. Blair <corvus@gnu.org>2019-06-09 10:07:14 -0700
commit3177ba26421b730bdf475fc2e991eef9ab9ef067 (patch)
treea7cce1756ccb5d6c50b1b56e1b24885ba683851f /email_assistant/plugins/eventbrite.py
parentc44874cfa48bf00b83057033fc7800b35e157702 (diff)
Add support for Delta
Also add an undocumented mailbox driver for a directory of files for ease of testing (this could probably become a maildir driver with a bit more work). Remove unecessary decode calls from the message traversal.
Diffstat (limited to 'email_assistant/plugins/eventbrite.py')
-rw-r--r--email_assistant/plugins/eventbrite.py2
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']