summaryrefslogtreecommitdiff
path: root/searx/engines/kickass.py
diff options
context:
space:
mode:
authorBnyro <bnyro@tutanota.com>2024-06-12 22:35:13 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-06-15 15:42:29 +0200
commite9f8412a6e4b399a3335da73b3d321104bb0c4fb (patch)
tree0caf5c1bede7bb8739c5c2e5d107fa75455ecc24 /searx/engines/kickass.py
parent16ce5612dd0ef426b6851ab97b248595f3933d8f (diff)
[perf] torrents.html, files.html: don't parse and re-format filesize
Diffstat (limited to 'searx/engines/kickass.py')
-rw-r--r--searx/engines/kickass.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/searx/engines/kickass.py b/searx/engines/kickass.py
index 12bf9c04d..311c2885b 100644
--- a/searx/engines/kickass.py
+++ b/searx/engines/kickass.py
@@ -11,7 +11,6 @@ from searx.utils import (
eval_xpath_getindex,
eval_xpath_list,
extract_text,
- get_torrent_size,
int_or_zero,
)
@@ -54,7 +53,7 @@ def response(resp):
result['content'] = extract_text(eval_xpath(tag, './/span[@class="font11px lightgrey block"]'))
result['seed'] = int_or_zero(extract_text(eval_xpath(tag, './/td[contains(@class, "green")]')))
result['leech'] = int_or_zero(extract_text(eval_xpath(tag, './/td[contains(@class, "red")]')))
- result['filesize'] = get_torrent_size(*extract_text(eval_xpath(tag, './/td[contains(@class, "nobr")]')).split())
+ result['filesize'] = extract_text(eval_xpath(tag, './/td[contains(@class, "nobr")]'))
results.append(result)