diff options
author | Adam Tauber <asciimoo@gmail.com> | 2015-05-02 14:58:32 -0400 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2015-05-02 14:58:32 -0400 |
commit | 93fd1e4c76b2eb3d219a8b146ae9e36b103ae5cf (patch) | |
tree | af2c5d2f48c4f11a79560f0f9f884209ad580617 /searx/engines/dailymotion.py | |
parent | 81850dd603631b7e4b0d3b22d85e9eb3ae5b1e58 (diff) | |
parent | 4689fe341ca7c7231d0409526b9ee0f2eadde445 (diff) | |
download | searxng-93fd1e4c76b2eb3d219a8b146ae9e36b103ae5cf.tar.gz searxng-93fd1e4c76b2eb3d219a8b146ae9e36b103ae5cf.zip |
Merge pull request #308 from dalf/versions_upgrade
update versions.cfg to use the current up-to-date packages
Diffstat (limited to 'searx/engines/dailymotion.py')
-rw-r--r-- | searx/engines/dailymotion.py | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/searx/engines/dailymotion.py b/searx/engines/dailymotion.py index 187639706..4eb894725 100644 --- a/searx/engines/dailymotion.py +++ b/searx/engines/dailymotion.py @@ -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 |