diff options
Diffstat (limited to 'email_assistant/plugins/marriott.py')
| -rw-r--r-- | email_assistant/plugins/marriott.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/email_assistant/plugins/marriott.py b/email_assistant/plugins/marriott.py index 52597cd..1f2abab 100644 --- a/email_assistant/plugins/marriott.py +++ b/email_assistant/plugins/marriott.py | |||
| @@ -43,7 +43,7 @@ class Plugin(plugin.Plugin): | |||
| 43 | events = [] | 43 | events = [] |
| 44 | for part in msg.walk(): | 44 | for part in msg.walk(): |
| 45 | if part.get_content_type() == 'text/html': | 45 | if part.get_content_type() == 'text/html': |
| 46 | soup = BeautifulSoup(part.get_payload(decode=True).decode('utf8'), 'html.parser') | 46 | soup = BeautifulSoup(part.get_payload(decode=True), 'html.parser') |
| 47 | summary = soup.find_all('table')[7].a.string.strip() | 47 | summary = soup.find_all('table')[7].a.string.strip() |
| 48 | location = soup.find_all('table')[9].a.string.strip() | 48 | location = soup.find_all('table')[9].a.string.strip() |
| 49 | start = (soup.find('th', string=re.compile('Check-In:')). | 49 | start = (soup.find('th', string=re.compile('Check-In:')). |
