mirror of
https://github.com/searxng/searxng.git
synced 2025-12-23 20:20:05 +00:00
[mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
committed by
Markus Heiser
parent
707d6270c8
commit
8205f170ff
@@ -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', '')
|
||||
|
||||
Reference in New Issue
Block a user