Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
searx-engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
searx-engine
Commits
d44677e2
Commit
d44677e2
authored
Jul 31, 2019
by
Dalf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] dailymotion engine: remove HTML tags from the description
parent
7f56c788
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dailymotion.py
searx/engines/dailymotion.py
+2
-2
No files found.
searx/engines/dailymotion.py
View file @
d44677e2
...
...
@@ -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'
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment