on master help sign in
[fix] dailymotion engine: remove HTML tags from the description
commitd44677e226b2530eea1c0f03806dd920055129cb authorDalf <alex@al-f.net> dateWed 31 Jul 2019, 08:37 (7 years ago) parent7f56c78
1 file changed+2−2
searx/engines/dailymotion.py+2−2
searx/engines/dailymotion.py+2−2
@@ -15,7 +15,7 @@
1515from json import loads
1616from datetime import datetime
1717from searx.url_utils import urlencode
18−from searx.utils import match_language
18+from searx.utils import match_language, html_to_text
1919
2020# engine dependent config
2121categories = ['videos']
@@ -59,7 +59,7 @@ def response(resp):
5959 for res in search_res['list']:
6060 title = res['title']
6161 url = res['url']
62− content = res['description']
62+ content = html_to_text(res['description'])
6363 thumbnail = res['thumbnail_360_url']
6464 publishedDate = datetime.fromtimestamp(res['created_time'], None)
6565 embedded = embedded_url.format(videoid=res['id'])