diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2024-03-11 07:45:08 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-03-11 14:55:38 +0100 |
commit | 8205f170ff983e5240d32dc17d7fdb526ebe5fe7 (patch) | |
tree | 536acda827bcdd1a6668714855e6f6c3ba6b68d4 /searx/engines/tokyotoshokan.py | |
parent | 707d6270c80426b54aeaa0ac0acd80ded45df533 (diff) | |
download | searxng-8205f170ff983e5240d32dc17d7fdb526ebe5fe7.tar.gz searxng-8205f170ff983e5240d32dc17d7fdb526ebe5fe7.zip |
[mod] pylint all engines without PYLINT_SEARXNG_DISABLE_OPTION
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/engines/tokyotoshokan.py')
-rw-r--r-- | searx/engines/tokyotoshokan.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/searx/engines/tokyotoshokan.py b/searx/engines/tokyotoshokan.py index b01de38c1..33f036428 100644 --- a/searx/engines/tokyotoshokan.py +++ b/searx/engines/tokyotoshokan.py @@ -1,12 +1,13 @@ # SPDX-License-Identifier: AGPL-3.0-or-later -""" - Tokyo Toshokan (A BitTorrent Library for Japanese Media) +"""Tokyo Toshokan (A BitTorrent Library for Japanese Media) + """ import re +from datetime import datetime from urllib.parse import urlencode + from lxml import html -from datetime import datetime from searx.utils import extract_text, get_torrent_size, int_or_zero # about @@ -75,14 +76,14 @@ def response(resp): # ('1.228', 'GB') groups = size_re.match(item).groups() params['filesize'] = get_torrent_size(groups[0], groups[1]) - except: + except: # pylint: disable=bare-except pass elif item.startswith('Date:'): try: # Date: 2016-02-21 21:44 UTC date = datetime.strptime(item, 'Date: %Y-%m-%d %H:%M UTC') params['publishedDate'] = date - except: + except: # pylint: disable=bare-except pass elif item.startswith('Comment:'): params['content'] = item |