summaryrefslogtreecommitdiff
path: root/searx/engines/invidious.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2022-02-04 15:20:57 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2022-02-04 15:42:06 +0100
commitb35ef9789bc1f302ca28f46716ac9864622559d5 (patch)
tree96a999147dd37d8a776008ddddc9a8cef080d0c5 /searx/engines/invidious.py
parente2ec6b4211322d5780c13f2f860b0b7bc912cd3e (diff)
downloadsearxng-b35ef9789bc1f302ca28f46716ac9864622559d5.tar.gz
searxng-b35ef9789bc1f302ca28f46716ac9864622559d5.zip
[pylint] engines/invidious.py
Fix remarks from pylint and remove usless comments Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/engines/invidious.py')
-rw-r--r--searx/engines/invidious.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/searx/engines/invidious.py b/searx/engines/invidious.py
index 931fd1066..badef57fd 100644
--- a/searx/engines/invidious.py
+++ b/searx/engines/invidious.py
@@ -1,12 +1,12 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
-"""
- Invidious (Videos)
+# lint: pylint
+"""Invidious (Videos)
"""
-from urllib.parse import quote_plus
-from dateutil import parser
import time
import random
+from urllib.parse import quote_plus
+from dateutil import parser
# about
about = {
@@ -27,7 +27,6 @@ time_range_support = True
base_url = 'https://vid.puffyan.us'
-# do search-request
def request(query, params):
time_range_dict = {
"day": "today",
@@ -55,7 +54,6 @@ def request(query, params):
return params
-# get response from search-request
def response(resp):
results = []