diff options
| author | Alexandre Flament <alex@al-f.net> | 2019-08-01 07:44:30 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-01 07:44:30 +0200 |
| commit | 1bed39e6cb877f75681f82fc8891f7dd4efbb9b6 (patch) | |
| tree | 60321d6d247c752ab5ac2f3c242daffd6795aaf2 /searx/engines/dailymotion.py | |
| parent | 7f56c78876c3f1ccd73c13a1275249a42c2c2405 (diff) | |
| parent | 0c032c84291954da206e8084553d91add240afd2 (diff) | |
Merge pull request #1658 from dalf/video-fixes
Fix dailymotion, google_videos and youtube_noapi engines
Diffstat (limited to 'searx/engines/dailymotion.py')
| -rw-r--r-- | searx/engines/dailymotion.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/dailymotion.py b/searx/engines/dailymotion.py index 069aceaa3..1038e64bf 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']) |