summaryrefslogtreecommitdiff
path: root/searx/engines/dailymotion.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-01-13 11:31:25 +0100
committerAlexandre Flament <alex@al-f.net>2021-01-14 20:57:17 +0100
commita4dcfa025c690dc4c824b2261242748a331a97e8 (patch)
tree2085c05e8ba319411a4b729c589e660d973a5c7c /searx/engines/dailymotion.py
parent5a511f0d620038b8e94c581bcfd3c987082b9414 (diff)
downloadsearxng-a4dcfa025c690dc4c824b2261242748a331a97e8.tar.gz
searxng-a4dcfa025c690dc4c824b2261242748a331a97e8.zip
[enh] engines: add about variable
move meta information from comment to the about variable so the preferences, the documentation can show these information
Diffstat (limited to 'searx/engines/dailymotion.py')
-rw-r--r--searx/engines/dailymotion.py21
1 files changed, 11 insertions, 10 deletions
diff --git a/searx/engines/dailymotion.py b/searx/engines/dailymotion.py
index 1e24e41da..874e0f42a 100644
--- a/searx/engines/dailymotion.py
+++ b/searx/engines/dailymotion.py
@@ -1,15 +1,6 @@
+# SPDX-License-Identifier: AGPL-3.0-or-later
"""
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 json import loads
@@ -17,6 +8,16 @@ from datetime import datetime
from urllib.parse import urlencode
from searx.utils import match_language, html_to_text
+# about
+about = {
+ "website": 'https://www.dailymotion.com',
+ "wikidata_id": 'Q769222',
+ "official_api_documentation": 'https://www.dailymotion.com/developer',
+ "use_official_api": True,
+ "require_api_key": False,
+ "results": 'JSON',
+}
+
# engine dependent config
categories = ['videos']
paging = True