[mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2024-03-11 07:45:08 +01:00 committed by Markus Heiser
parent 707d6270c8
commit 8205f170ff
155 changed files with 166 additions and 258 deletions

View file

@ -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', '')