mirror of
https://github.com/searxng/searxng.git
synced 2025-08-21 03:06:46 +02:00
[mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
707d6270c8
commit
8205f170ff
155 changed files with 166 additions and 258 deletions
|
@ -1,6 +1,6 @@
|
|||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
"""
|
||||
Youtube (Videos)
|
||||
"""Youtube (Videos)
|
||||
|
||||
"""
|
||||
|
||||
from functools import reduce
|
||||
|
@ -101,7 +101,7 @@ def parse_next_page_response(response_text):
|
|||
"key": "next_page_token",
|
||||
}
|
||||
)
|
||||
except:
|
||||
except: # pylint: disable=bare-except
|
||||
pass
|
||||
|
||||
return results
|
||||
|
@ -167,5 +167,4 @@ def parse_first_page_response(response_text):
|
|||
def get_text_from_json(element):
|
||||
if 'runs' in element:
|
||||
return reduce(lambda a, b: a + b.get('text', ''), element.get('runs'), '')
|
||||
else:
|
||||
return element.get('simpleText', '')
|
||||
return element.get('simpleText', '')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue