diff --git a/redditbot.py b/redditbot.py index cb5fac4..4ea0d92 100644 --- a/redditbot.py +++ b/redditbot.py @@ -365,7 +365,7 @@ async def main(): url = urlunparse(urlparse(url, 'https')) await _download_file(filename, url) ext = await _get_file_ext(filename) - if ext.startswith('.htm'): + if ext in ('.htm', '.html'): with open(filename) as file: soup = BeautifulSoup(file.read()) ptitle = soup.find(lambda tag: tag.name == 'meta' and tag.attrs.get('property') == 'og:title' and tag.attrs.get('content')) or soup.find('title')