summaryrefslogtreecommitdiff
path: root/searx/engines/peertube.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-01-16 19:05:17 +0100
committerGitHub <noreply@github.com>2021-01-16 19:05:17 +0100
commit1d13ad8452e20fb69b77caf6bb9358f82e3934ba (patch)
tree2085c05e8ba319411a4b729c589e660d973a5c7c /searx/engines/peertube.py
parent5a511f0d620038b8e94c581bcfd3c987082b9414 (diff)
parenta4dcfa025c690dc4c824b2261242748a331a97e8 (diff)
downloadsearxng-1d13ad8452e20fb69b77caf6bb9358f82e3934ba.tar.gz
searxng-1d13ad8452e20fb69b77caf6bb9358f82e3934ba.zip
Merge pull request #2460 from dalf/engine-about
[enh] engines: add about variable
Diffstat (limited to 'searx/engines/peertube.py')
-rw-r--r--searx/engines/peertube.py21
1 files changed, 11 insertions, 10 deletions
diff --git a/searx/engines/peertube.py b/searx/engines/peertube.py
index e43b2a6b7..549141079 100644
--- a/searx/engines/peertube.py
+++ b/searx/engines/peertube.py
@@ -1,15 +1,6 @@
+# SPDX-License-Identifier: AGPL-3.0-or-later
"""
peertube (Videos)
-
- @website https://www.peertube.live
- @provide-api yes (https://docs.joinpeertube.org/api-rest-reference.html)
-
- @using-api yes
- @results JSON
- @stable yes
- @parse url, title, thumbnail, publishedDate, embedded
-
- @todo implement time range support
"""
from json import loads
@@ -17,6 +8,16 @@ from datetime import datetime
from urllib.parse import urlencode
from searx.utils import html_to_text
+# about
+about = {
+ "website": 'https://joinpeertube.org',
+ "wikidata_id": 'Q50938515',
+ "official_api_documentation": 'https://docs.joinpeertube.org/api-rest-reference.html',
+ "use_official_api": True,
+ "require_api_key": False,
+ "results": 'JSON',
+}
+
# engine dependent config
categories = ["videos"]
paging = True