mirror of
https://github.com/searxng/searxng.git
synced 2025-08-02 01:52:21 +02:00
Merge pull request #308 from dalf/versions_upgrade
update versions.cfg to use the current up-to-date packages
This commit is contained in:
commit
93fd1e4c76
40 changed files with 484 additions and 396 deletions
|
@ -1,14 +1,16 @@
|
|||
## Dailymotion (Videos)
|
||||
#
|
||||
# @website https://www.dailymotion.com
|
||||
# @provide-api yes (http://www.dailymotion.com/developer)
|
||||
#
|
||||
# @using-api yes
|
||||
# @results JSON
|
||||
# @stable yes
|
||||
# @parse url, title, thumbnail, publishedDate, embedded
|
||||
#
|
||||
# @todo set content-parameter with correct data
|
||||
"""
|
||||
Dailymotion (Videos)
|
||||
|
||||
@website https://www.dailymotion.com
|
||||
@provide-api yes (http://www.dailymotion.com/developer)
|
||||
|
||||
@using-api yes
|
||||
@results JSON
|
||||
@stable yes
|
||||
@parse url, title, thumbnail, publishedDate, embedded
|
||||
|
||||
@todo set content-parameter with correct data
|
||||
"""
|
||||
|
||||
from urllib import urlencode
|
||||
from json import loads
|
||||
|
@ -48,7 +50,7 @@ def response(resp):
|
|||
search_res = loads(resp.text)
|
||||
|
||||
# return empty array if there are no results
|
||||
if not 'list' in search_res:
|
||||
if 'list' not in search_res:
|
||||
return []
|
||||
|
||||
# parse results
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue