This commit is contained in:
plocki 2020-02-08 11:46:40 +01:00
parent 80f125683f
commit e7ddda220f
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ class MatrixModule:
# try parse and get the title
try:
soup = BeautifulSoup(r.text, "html.parser")
title = soup.title.string
title = soup.title.string.strip()
descr_tag = soup.find("meta", attrs={"name": "description"})
if descr_tag:
description = descr_tag.get("content", None)