summaryrefslogtreecommitdiff
path: root/searx/engines/dailymotion.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines/dailymotion.py')
-rw-r--r--searx/engines/dailymotion.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/searx/engines/dailymotion.py b/searx/engines/dailymotion.py
index 1038e64..92d368c 100644
--- a/searx/engines/dailymotion.py
+++ b/searx/engines/dailymotion.py
@@ -1,26 +1,26 @@
+# 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
from datetime import datetime
-from searx.url_utils import urlencode
+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
-language_support = True
# search-url
# see http://www.dailymotion.com/doc/api/obj-video.html