diff options
author | Alexandre Flament <alex@al-f.net> | 2021-01-13 11:31:25 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2021-01-14 20:57:17 +0100 |
commit | a4dcfa025c690dc4c824b2261242748a331a97e8 (patch) | |
tree | 2085c05e8ba319411a4b729c589e660d973a5c7c /searx/engines/1337x.py | |
parent | 5a511f0d620038b8e94c581bcfd3c987082b9414 (diff) | |
download | searxng-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/1337x.py')
-rw-r--r-- | searx/engines/1337x.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/searx/engines/1337x.py b/searx/engines/1337x.py index 18478876a..9cc7c1b79 100644 --- a/searx/engines/1337x.py +++ b/searx/engines/1337x.py @@ -1,7 +1,21 @@ +# SPDX-License-Identifier: AGPL-3.0-or-later +""" + 1337x +""" + from urllib.parse import quote, urljoin from lxml import html from searx.utils import extract_text, get_torrent_size, eval_xpath, eval_xpath_list, eval_xpath_getindex +# about +about = { + "website": 'https://1337x.to/', + "wikidata_id": 'Q28134166', + "official_api_documentation": None, + "use_official_api": False, + "require_api_key": False, + "results": 'HTML', +} url = 'https://1337x.to/' search_url = url + 'search/{search_term}/{pageno}/' |