From d44677e226b2530eea1c0f03806dd920055129cb Mon Sep 17 00:00:00 2001 From: Dalf Date: Wed, 31 Jul 2019 08:37:51 +0200 Subject: [PATCH] [fix] dailymotion engine: remove HTML tags from the description --- searx/engines/dailymotion.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/searx/engines/dailymotion.py b/searx/engines/dailymotion.py index 069aceaa..1038e64b 100644 --- a/searx/engines/dailymotion.py +++ b/searx/engines/dailymotion.py @@ -15,7 +15,7 @@ from json import loads from datetime import datetime from searx.url_utils import urlencode -from searx.utils import match_language +from searx.utils import match_language, html_to_text # engine dependent config categories = ['videos'] @@ -59,7 +59,7 @@ def response(resp): for res in search_res['list']: title = res['title'] url = res['url'] - content = res['description'] + content = html_to_text(res['description']) thumbnail = res['thumbnail_360_url'] publishedDate = datetime.fromtimestamp(res['created_time'], None) embedded = embedded_url.format(videoid=res['id'])